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 "logo_prompt" for this functionality. |
description | String | Yes | A brief or detailed description of the company or shop. |
Example Request Body
Response Format
- Content-Type:
text/plain - Response: A raw text string representing the logo prompt, with no JSON, formatting, or additional text.
Example Response
Guidelines for Logo Prompt Generation
The API generates prompts based on these principles:- Input Processing: Extracts key details from the
description(e.g., company name, industry, style preferences). - Output Design:
- Concise and clear, tailored for text-to-image AI.
- Incorporates brand identity, imagery, and styling cues.
- Focuses on clarity and relevance to the company/shop.
- Restrictions:
- No extra text (e.g., no greetings, explanations, or JSON).
- No code blocks, disclaimers, or labels.
- Pure text prompt only.
Example Transformation
- Input Description: “We are an online bookstore called Novel Nest, specializing in rare and classic literature with a modern and minimalist vibe. We want something sleek, refined, and timeless that represents our passion for literature.”
- Output Prompt:
A sleek, modern, and minimalist logo for Novel Nest, specializing in rare and classic literature. Subtle nod to timeless books, refined typography, and a clean design representing passion for reading.
JavaScript Example
Below is an example of how to use the Logo Prompt Generator API in JavaScript with thefetch API:
Error Handling
- Invalid API Key: Returns an error message (e.g., “Unauthorized”).
- Missing Fields: If
command_nameordescriptionis 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 Detail: Provide a clear description with key brand elements (e.g., name, industry, vibe) for optimal results.
- Prompt Usage: Feed the output directly into a text-to-image AI tool for logo generation.
- Testing: Experiment with different descriptions to refine the generated prompts.
- Integration: Use in workflows to automate logo ideation for businesses or clients.