Build with ideogram character remix
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-remix",
"input": {
"style": "AUTO",
"strength": 0.8,
"image_size": "square_hd",
"num_images": "1",
"rendering_speed": "BALANCED",
"prompt": "<prompt>",
"image_url": "<image_url>",
"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 to remix the image with (Max length: 5000 characters)
strengthnumberStrength of the input image in the remix Default value: 0.8 (Min: 0.1, Max: 1, Step: 0.1) (step: 0.1)
image_urlstringRequiredThe image URL to remix (Accepted types: image/jpeg, image/png, image/webp; Max size: 10.0MB)
image_sizestringOutput image size.
Options: square, square_hd, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9
image_urlsarrayA set of images to use as style references (maximum total size 10MB across all style references). The images should be in JPEG, PNG or WebP format (Accepted types: image/jpeg, image/png, image/webp; Max size: 10.0MB)
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: 500 characters)
rendering_speedstringThe rendering speed to use. Default value: "BALANCED"
Options: TURBO, BALANCED, QUALITY
reference_mask_urlsstringA set of masks to apply to the character references. Currently only 1 mask is supported, rest will be ignored. (maximum total size 10MB across all character references). The masks should be in JPEG, PNG or WebP format (Accepted types: image/jpeg, image/png, image/webp; Max size: 10.0MB)
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",
"image_url",
"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 to remix the image with (Max length: 5000 characters)"
},
"strength": {
"type": "number",
"title": "Strength",
"default": 0.8,
"maximum": 1,
"minimum": 0.1,
"description": "Strength of the input image in the remix Default value: 0.8 (Min: 0.1, Max: 1, Step: 0.1) (step: 0.1)"
},
"image_url": {
"type": "string",
"title": "Image URL",
"format": "uri",
"x-media": "image",
"description": "The image URL to remix (Accepted types: image/jpeg, image/png, image/webp; Max size: 10.0MB)"
},
"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": "Output image size."
},
"image_urls": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Image URLs",
"x-media": "image",
"maxItems": 5,
"description": "A set of images to use as style references (maximum total size 10MB across all style references). The images should be in JPEG, PNG or WebP format (Accepted types: image/jpeg, image/png, image/webp; Max size: 10.0MB)"
},
"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": 500,
"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: 500 characters)"
},
"rendering_speed": {
"enum": [
"TURBO",
"BALANCED",
"QUALITY"
],
"type": "string",
"title": "Rendering speed",
"default": "BALANCED",
"description": "The rendering speed to use. Default value: \"BALANCED\""
},
"reference_mask_urls": {
"type": "string",
"title": "Reference mask URLs",
"format": "uri",
"x-media": "image",
"description": "A set of masks to apply to the character references. Currently only 1 mask is supported, rest will be ignored. (maximum total size 10MB across all character references). The masks should be in JPEG, PNG or WebP format (Accepted types: image/jpeg, image/png, image/webp; Max size: 10.0MB)"
},
"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.






