Skip to main content

API Endpoint

  • URL: https://text-tad.droplinked.workers.dev/
  • Method: POST
  • Content-Type: application/json

Authentication

An API key is required for access. Contact Droplinked support to obtain your API key. Include it in the request headers as follows:
  • Header: api-key
  • Value: <YOUR_API_KEY> (provided by Droplinked)

Request Format

The API accepts a JSON payload with the following fields:

Request Body

Example Request Body

Response Format

  • Content-Type: text/plain
  • Response: A single, vivid sentence (under 200 characters) as the prompt for the FLUX.1 Schnell model, with no additional text or formatting.

Example Response

Guidelines for Banner Prompt Generation

The API generates prompts based on these rules:
  1. Design Focus:
    • Balanced layout with a focal point (e.g., blockchain link, digital node, network).
    • Tied to web3 and onchain themes from the description and category.
  2. Style:
    • Sleek, modern, and futuristic.
    • Incorporates elements like circuit patterns, geometric shapes, or digital grids.
  3. Content:
    • No text, logos, or brand names; uses visual metaphors for identity.
    • Detailed yet clean, professional, and tech-savvy.
  4. Output:
    • Single sentence, under 200 characters.
    • No extra text, formatting, or explanations—just the prompt.

JavaScript Example

Below is an example of how to use the Banner Prompt Generator API in JavaScript with the fetch API:

Error Handling

  • Invalid API Key: Returns an error message (e.g., “Unauthorized”).
  • Missing Fields: If command_name, description, or category is missing, the API may return an error or fail silently.
  • Network Issues: Handle errors in the .catch block of the fetch call.

Example Error Output

Best Practices

  1. Description Specificity: Include key business traits in the description for relevant prompts.
  2. Category Relevance: Ensure the category aligns with the business (e.g., “technology” for web3).
  3. Prompt Usage: Feed the output directly into the FLUX.1 Schnell model for banner generation.
  4. Testing: Test with varied inputs to refine the visual output.

Support

For assistance or to request an API key, contact Droplinked support at support@droplinked.com. Provide details such as your use case and expected request volume.