Ideogram text-to-image
Ideogram text-to-image is suitable for the generation of posters, packaging, text layouts, styled illustrations and pictures with clear visual themes.
API Path
| Methodology | Path | Returns by |
|---|---|---|
POST | /ideogram/generate | Returns image-generation results; follow the actual response. |
Example request
bash
curl https://moonnexai.com/ideogram/generate \
-H "Authorization: Bearer <MOONNEXAI_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A premium coffee cup package design, clean background.",
"aspect_ratio": "1:1"
}'Common field
| field | Annotations |
|---|---|
prompt | Picture description. |
aspect_ratio | Picture aspect ratio, e.g. 1:1, 16:9, 9:16. |
style_type | style type, as in API Reference. |
Results-based processing
| scene | Treatment |
|---|---|
| Return picture URL | Saves pictures of URL, prompt, aspect ratio and operational uses. |
| We need to keep this going. | Passs the result URL to Ideogram Zoom in or Ideogram Mixed Chart. |
| Failed to generate | Keeps request body and track information to facilitate the sorting of models, aspect ratio and input content. |
Access Recommendations
- When a clear text is required, the file and layout requirements are entered in the programt.
- Suggests to save prompt, aspect ratio, result URL and operational uses.
- Ideogram Mixed Chart needs to be used when retrofitting the original map.