Generate a Magic Prompt with Ideogram 4.0
Transforms a basic prompt into an enhanced Ideogram 4.0 magic prompt.
The magic prompt model version is fixed; callers cannot select it.
When aspect_ratio is AUTO (the default), the model selects the most
suitable aspect ratio for the prompt and returns it in the response.
Authentication
API key for access control. Use in the header with the name “Api-Key”
Request
The natural-language prompt to enhance into an Ideogram 4.0 magic
prompt. Named text_prompt to match the Ideogram 4.0 generate
request surface.
Target aspect ratio. Defaults to AUTO, which lets the model
select the most suitable ratio and return it in the response.
Response
The enhanced prompt as an Ideogram 4.0 structured JSON prompt. This
conforms to the same contract as json_prompt on
/v1/ideogram-v4/generate, so it can be passed straight back to
that endpoint.
The resolved aspect ratio. When the request used AUTO, this is
the ratio the model selected; otherwise it echoes the request.