Skip to main content
POST

Authorizations

x-magnific-api-key
string
header
required

Your Magnific API key. Required for authentication. Learn how to obtain an API key

Body

application/json
prompt
string
required

Text description of the image you want to generate.

Tips:

  • Be specific about visual details, composition, and style
  • Seedream 5.0 Pro delivers high-fidelity detail, strong prompt adherence, and superior composition
  • Describe lighting, atmosphere, and camera angles for best results

Examples:

  • Simple: "A futuristic cityscape at sunset with neon lights"
  • Detailed: "A futuristic cityscape at sunset with neon lights, detailed architecture, volumetric lighting, cinematic composition"
Maximum string length: 4096
Example:

"A futuristic cityscape at sunset with neon lights"

reference_images
string[]
required

Array of reference images for image editing (1 to 10 images). Seedream 5.0 Pro preserves subject details, lighting, and color tone when editing.

Supported formats:

  • Base64-encoded image strings
  • Publicly accessible image URLs

Image requirements:

  • Minimum resolution: 256x256 pixels
  • Maximum file size: 10MB per image
  • Supported formats: JPG, JPEG, PNG
Required array length: 1 - 10 elements

Image as Base64 encoded string or publicly accessible URL

Example:
webhook_url
string<uri>

Optional callback URL that will receive asynchronous notifications whenever the task changes status. The payload sent to this URL is the same as the corresponding GET endpoint response, but without the data field.

Example:

"https://www.example.com/webhook"

resolution
enum<string>
default:2k

Output resolution tier.

Available options:

  • 2k: Base output - up to ~4.19M pixels (2048x2048 at 1:1)
  • 1.5k: Economical tier - capped at ~2.36M pixels (1536x1536 at 1:1)

The final image dimensions fit the selected aspect ratio within the tier's pixel budget, with each dimension rounded to a multiple of 16.

Available options:
1.5k,
2k
Example:

"2k"

aspect_ratio
enum<string>
default:square_1_1

The aspect ratio of the generated image, combined with the resolution tier to compute the final dimensions.

Available options:

  • square_1_1: Square format - Instagram feed, profile pictures
  • widescreen_16_9: Landscape - YouTube thumbnails, presentations
  • social_story_9_16: Portrait - TikTok, Instagram Stories
  • portrait_2_3: Tall portrait - Pinterest pins
  • traditional_3_4: Classic photo - Traditional photography
  • standard_3_2: Photo print - Standard prints
  • classic_4_3: Monitor ratio - Classic displays
  • cinematic_21_9: Ultra-wide - Cinematic banners
Available options:
square_1_1,
widescreen_16_9,
social_story_9_16,
portrait_2_3,
traditional_3_4,
standard_3_2,
classic_4_3,
cinematic_21_9
Example:

"square_1_1"

thinking_level
enum<string>
default:high

How much the model reasons about the prompt before drawing.

Available options:

  • high: The model refines the prompt first. Better for complex compositions and many constraints, at the cost of a noticeably longer generation time.
  • fast: Skips that step for much faster generations. A good fit when the reference images already carry most of the intent.

It does not affect the price.

Available options:
fast,
high
Example:

"high"

seed
integer

Random seed for reproducibility. Using the same seed with identical parameters produces similar results. Useful for iterating on a design or creating variations.

Required range: 0 <= x <= 4294967295
Example:

12345

Response

OK - The request has succeeded and the Seedream 5.0 Pro edit process has started.

data
object
required
Example: