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
| Field | Type | Required | Description |
|---|---|---|---|
command_name | String | Yes | Must be set to "banner_prompt" for this functionality. |
description | String | Yes | A brief or detailed description of the company. |
category | String | Yes | The company’s category (e.g., “technology”). |
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:- Design Focus:
- Balanced layout with a focal point (e.g., blockchain link, digital node, network).
- Tied to web3 and onchain themes from the
descriptionandcategory.
- Style:
- Sleek, modern, and futuristic.
- Incorporates elements like circuit patterns, geometric shapes, or digital grids.
- Content:
- No text, logos, or brand names; uses visual metaphors for identity.
- Detailed yet clean, professional, and tech-savvy.
- 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 thefetch API:
Error Handling
- Invalid API Key: Returns an error message (e.g., “Unauthorized”).
- Missing Fields: If
command_name,description, orcategoryis missing, the API may return an error or fail silently. - Network Issues: Handle errors in the
.catchblock of thefetchcall.
Example Error Output
Best Practices
- Description Specificity: Include key business traits in the
descriptionfor relevant prompts. - Category Relevance: Ensure the
categoryaligns with the business (e.g., “technology” for web3). - Prompt Usage: Feed the output directly into the FLUX.1 Schnell model for banner generation.
- Testing: Test with varied inputs to refine the visual output.