MAI-Image 2.5
Model Overview
Setup your API Key
API Schema
post
Body
modelstring · enumRequiredPossible values:
promptstring · min: 1 · max: 4000RequiredExample:
The text prompt describing the content, style, or composition of the image to be generated.
A photorealistic red sports car on a winding coastal road at sunset, cinematic lighting.aspect_ratiostring · enumOptionalDefault:
The aspect ratio of the generated image.
1:1Example: 16:9Possible values: max_tokensinteger · min: 1OptionalExample:
The maximum number of tokens that can be generated. This value can be used to control costs for text generated via API.
4096temperaturenumber · max: 2OptionalDefault:
What sampling temperature to use. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
1Example: 1max_completion_tokensinteger · min: 1OptionalExample:
An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens.
4096Responses
200Success
application/json
post
/v1/images/generations200Success
Quick Example

"A futuristic city at night with neon lights reflecting on wet streets"Last updated
Was this helpful?