text-to-image

Flux 2 Turbo - Create image from text

Create high-quality images quickly using FLUX.2 [turbo], the speed-optimized version of Flux 2.

Key Features:

  • Fast generation (optimized for speed)
  • Lower cost than Pro version
  • Adjustable guidance scale for prompt adherence
  • Custom image dimensions (512-2048px)
  • Safety checker for content filtering
  • Multiple output formats (PNG/JPEG)

Use Cases:

  • Rapid prototyping and iteration
  • Content exploration
  • High-volume generation
  • Testing prompts and concepts
post/v1/ai/text-to-image/flux-2-turbo

Request

  • Base URL: https://api.magnific.com
  • URL: https://api.magnific.com/v1/ai/text-to-image/flux-2-turbo
  • Auth: API key in header x-magnific-api-key

Request body

promptstring required

Text description of the image you want to generate.

FLUX.2 [turbo] is optimized for speed while maintaining good quality. Perfect for rapid prototyping and testing.

Performance:

  • Faster generation than Flux 2 Pro
  • Lower cost per generation
  • Great for iteration and experimentation

Tips:

  • Works best with clear, descriptive prompts
  • Adjust guidance_scale for prompt adherence
  • Use seed for reproducibility

Examples:

  • "mountain landscape at golden hour"
  • "portrait of a smiling person, natural lighting, soft focus"
  • "abstract geometric pattern with vibrant colors"
guidance_scalenumber

Controls how closely the model follows your prompt.

Range: 1.0 to 20.0 Default: 2.5

Guidelines:

  • Low (1-3): More creative freedom, less literal interpretation
  • Medium (3-7): Balanced between creativity and prompt accuracy
  • High (7-20): Strict adherence to prompt, less creative variation

Recommendation: Start with default (2.5) and adjust if needed.

seedinteger nullable

Random seed for reproducible results.

Valid range: 0 to 4,294,967,295 Default: Random (if not provided)

Tip: Save the seed from generations you like to create similar variations.

enable_safety_checkerboolean

Enable content safety filtering.

When enabled: Filters potentially unsafe content (NSFW, violence, etc.) When disabled: No content filtering (use responsibly and in compliance with terms)

Recommendation: Keep enabled for production applications.

output_format'jpeg' | 'png'

Output image format.

PNG:

  • Lossless compression
  • Supports transparency
  • Larger file size
  • Best for graphics and illustrations

JPEG:

  • Lossy compression
  • Smaller file size
  • No transparency
  • Best for photos and realistic images
webhook_urlstring 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 request

{
  "prompt": "a serene landscape with mountains and a lake at sunset",
  "guidance_scale": 2.5,
  "seed": 12345,
  "image_size": {
    "width": 1024,
    "height": 1024
  },
  "enable_safety_checker": true,
  "output_format": "png",
  "webhook_url": "https://www.example.com/webhook"
}

Response

OK - Task created successfully

Example response

{
  "data": {
    "task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "status": "CREATED"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.