Build with Ideogram Character
Make your first request
Use your Sorceress API key on your server. The playground uses your signed-in account; your application uses the same model with an API key.
curl -X POST 'https://sorceress.games/api/v1/jobs' \
-H 'Authorization: Bearer $SORCERESS_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "ideogram-character",
"input": {
"style": "AUTO",
"image_size": "square_hd",
"num_images": "1",
"rendering_speed": "BALANCED",
"prompt": "<prompt>",
"reference_image_urls": "<reference_image_urls>"
}
}'Inputs & settings
seedintegerSeed for the random number generator
stylestringThe style type to generate with. Default value: "AUTO"
Options: AUTO, REALISTIC, FICTION
promptstringRequiredThe prompt describing the scene to generate with the referenced character. (Max length: 5000 characters)
image_sizestringThe resolution of the generated image Default value: square_hd
Options: square, square_hd, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9
num_imagesstringNumber of images to generate.
Options: 1, 2, 3, 4
expand_promptbooleanDetermine if MagicPrompt should be used in generating the request or not. Default value: true (Boolean value (true/false))
negative_promptstringDescription 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)
rendering_speedstringThe rendering speed to use. Default value: "BALANCED"
Options: TURBO, BALANCED, QUALITY
reference_image_urlsarrayRequiredA 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 (Accepted types: image/jpeg, image/png, image/webp; Max size: 10.0MB)
Full input schema
{
"type": "object",
"required": [
"prompt",
"reference_image_urls"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"description": "Seed for the random number generator"
},
"style": {
"enum": [
"AUTO",
"REALISTIC",
"FICTION"
],
"type": "string",
"title": "Style",
"default": "AUTO",
"description": "The style type to generate with. Default value: \"AUTO\""
},
"prompt": {
"type": "string",
"title": "Prompt",
"maxLength": 5000,
"description": "The prompt describing the scene to generate with the referenced character. (Max length: 5000 characters)"
},
"image_size": {
"enum": [
"square",
"square_hd",
"portrait_4_3",
"portrait_16_9",
"landscape_4_3",
"landscape_16_9"
],
"type": "string",
"title": "Image size",
"default": "square_hd",
"description": "The resolution of the generated image Default value: square_hd"
},
"num_images": {
"enum": [
"1",
"2",
"3",
"4"
],
"type": "string",
"title": "Num images",
"default": "1",
"description": "Number of images to generate."
},
"expand_prompt": {
"type": "boolean",
"title": "Expand prompt",
"description": "Determine if MagicPrompt should be used in generating the request or not. Default value: true (Boolean value (true/false))"
},
"negative_prompt": {
"type": "string",
"title": "Negative prompt",
"maxLength": 5000,
"description": "Description 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)"
},
"rendering_speed": {
"enum": [
"TURBO",
"BALANCED",
"QUALITY"
],
"type": "string",
"title": "Rendering speed",
"default": "BALANCED",
"description": "The rendering speed to use. Default value: \"BALANCED\""
},
"reference_image_urls": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Reference image URLs",
"x-media": "image",
"maxItems": 1,
"description": "A 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 (Accepted types: image/jpeg, image/png, image/webp; Max size: 10.0MB)"
}
}
}Results, saved runs & billing
Media requests return a job ID. Poll GET /api/v1/jobs/:id until it succeeds or fails; keep the same ID while it is processing. Long chat requests can also return a saved job to poll. Completed outputs are stored in your account, and successful work is billed using your model's current rates.
A multi-step workflow may include separately billed successful actions. If a connection drops, check your saved run before submitting it again.






