Skip to content

Ideogram - Character ​

Endpoint ​

POST /images/generations

Full URL: https://modelfold.ai/v1/images/generations

Authentication: every request must include the Authorization: Bearer <API_KEY> header.

Send model parameters directly in the JSON body. Do not wrap them in input. This request waits for generation to finish and returns data[].url; supported media models also offer async jobs, polling and callbacks. Replace example media URLs with your own publicly accessible files. See API gateway for billing and errors.

Input parameters for the generation task

Request Parameters ​

Body (application/json) ​

ParameterTypeRequiredDescription
modelstringYesThe model name to use for generation. Required field.
- Must be ideogram/character for this endpoint Default:"ideogram/character"。 Allowed values:ideogram/character。 Example:ideogram/character。
promptstringYesPrompt required by the ModelFold gateway; at most 2000 characters. The prompt describing the scene to generate with the referenced character. (Max length: 5000 characters) maxLength: 2000. Example:Place the woman from the uploaded portrait, wearing a casual white blouse, in a peaceful garden setting. The scene should feature vibrant green plants and colorful flowers, with soft sunlight filtering through the leaves. She should be sitting on a wooden bench, holding a book and smiling gently. The background should be filled with lush greenery, with a serene, tranquil atmosphere. Golden afternoon light should highlight the woman’s face and create soft shadows on the ground, adding a peaceful, reflective mood to the scene。
reference_image_urlsarray&lt;string&gt;YesA set of images to use as character references. Currently only 1 image is supported, rest will be ignored. (maximum total size 10MB across all character references). The images should be in JPEG, PNG or WebP format (File URL after upload, not file content; Accepted types: image/jpeg, image/png, image/webp; Max size: 10.0MB) maxItems: 1.
rendering_speedstringNoThe rendering speed to use. Default value: "BALANCED" Default:"BALANCED"。 Allowed values:TURBO / BALANCED / QUALITY。 Example:BALANCED。
stylestringNoThe style type to generate with. Default value: "AUTO" Default:"AUTO"。 Allowed values:AUTO / REALISTIC / FICTION。 Example:AUTO。
expand_promptbooleanNoDetermine if MagicPrompt should be used in generating the request or not. Default value: true (Boolean value (true/false)) Example:true。
image_sizestringNoThe resolution of the generated image Default value: square_hd Default:"square_hd"。 Allowed values:square / square_hd / portrait_4_3 / portrait_16_9 / landscape_4_3 / landscape_16_9。 Example:square_hd。
seedintegerNoSeed for the random number generator
negative_promptstringNoDescription of what to exclude from an image. Descriptions in the prompt take precedence to descriptions in the negative prompt. Default value: "" (Max length: 5000 characters) maxLength: 5000. Example:``。

Request Example ​

bash
curl -X POST "https://modelfold.ai/v1/images/generations" \
  -H "Authorization: Bearer $MODELFOLD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "ideogram/character",
  "prompt": "Place the woman from the uploaded portrait, wearing a casual white blouse, in a peaceful garden setting. The scene should feature vibrant green plants and colorful flowers, with soft sunlight filtering through the leaves. She should be sitting on a wooden bench, holding a book and smiling gently. The background should be filled with lush greenery, with a serene, tranquil atmosphere. Golden afternoon light should highlight the woman’s face and create soft shadows on the ground, adding a peaceful, reflective mood to the scene",
  "reference_image_urls": [
    "https://example.com/reference.png"
  ],
  "rendering_speed": "BALANCED",
  "style": "AUTO",
  "image_size": "square_hd"
}'
json
{
  "model": "ideogram/character",
  "prompt": "Place the woman from the uploaded portrait, wearing a casual white blouse, in a peaceful garden setting. The scene should feature vibrant green plants and colorful flowers, with soft sunlight filtering through the leaves. She should be sitting on a wooden bench, holding a book and smiling gently. The background should be filled with lush greenery, with a serene, tranquil atmosphere. Golden afternoon light should highlight the woman’s face and create soft shadows on the ground, adding a peaceful, reflective mood to the scene",
  "reference_image_urls": [
    "https://example.com/reference.png"
  ],
  "rendering_speed": "BALANCED",
  "style": "AUTO",
  "image_size": "square_hd"
}

Response ​

200 — Generation completed. usage contains actual billing details; result URLs are illustrative. ​

json
{
  "ok": true,
  "created": 1792134000,
  "data": [
    {
      "url": "https://modelfold.ai/uploads/outputs/result.png"
    }
  ],
  "usage": {}
}

ModelFold — one API for all the best AI models.