Flux Context
AgentOdkrywajBiblioteka

Generuj

Wszystkie narzędziaWszystkie modele

Przepływy pracy

Reklama AIOdtwórz viralNowe
APIUlepsz plan
AgentBiblioteka

Ładowanie...

Możesz poczekać lub odświeżyć tę stronę.

Odśwież stronęPrzejdź do strony głównejSkontaktuj się z pomocą

    API

    Manage your API access and requests.

    OverviewAPI KeyAPI LogsDocs

    Getting started

    QuickstartAuthenticationPoll & downloadErrors & limits

    Image models

    Seedream 5.5Seedream 5.0 ProSeedream 5.0 LiteNano Banana 2GPT Image 2Seedream 4.5

    Video models

    Seedance 2.0Seedance 2.0 MiniSeedance 2.0 FastSeedance 2.5Wan 3.0
    Seedream 5.0 Pro · Documentation

    Getting started

    QuickstartAuthenticationPoll & downloadErrors & limits

    Image models

    Seedream 5.5Seedream 5.0 ProSeedream 5.0 LiteNano Banana 2GPT Image 2Seedream 4.5

    Video models

    Seedance 2.0Seedance 2.0 MiniSeedance 2.0 FastSeedance 2.5Wan 3.0
    Docs Models

    Seedream 5.0 Pro

    Generate images from text or edit images using references.

    POST
    /api/v1/generations

    Example request

    Set your FLUX_API_KEY before running. See the parameters below for supported settings.

    cURL
    curl https://api.flux-context.org/api/v1/generations \
      -H "Authorization: Bearer $FLUX_API_KEY" \
      -H "Content-Type: application/json" \
      --data '{
      "model": "seedream-5-pro",
      "input": {
        "prompt": "Editorial portrait in natural light",
        "resolution": "2K",
        "aspect_ratio": "3:4"
      }
    }'

    Parameters

    Set model to seedream-5-pro. These fields belong inside input.

    ParameterDescription
    prompt
    string · Required
    Describe the desired output. Minimum 1 characters. Maximum 5,000 characters.
    image_urls
    string[] · Optional
    Public HTTPS reference images. Video image order and count depend on mode. Up to 10 items.
    resolution
    string · Optional
    Output resolution tier. Values are case-sensitive.
    1K2K
    aspect_ratio
    string · Optional
    Output proportions; see mode constraints below.
    1:12:33:24:33:49:1616:921:9
    size
    string · Optional
    Custom widthxheight, in multiples of 16. 921,600–4,194,304 pixels; ratio 1:16–16:1. Cannot combine with resolution or aspect_ratio. Maximum 64 characters.
    output_format
    string · Optional
    Output file format.
    jpegpng
    Default: jpeg

    Reference media

    Use your own publicly accessible HTTPS media URLs. Links must remain valid throughout queueing and generation. Base64 and file upload bodies are not supported by this endpoint.

    Image-to-image

    cURL
    curl https://api.flux-context.org/api/v1/generations \
      -H "Authorization: Bearer $FLUX_API_KEY" \
      -H "Content-Type: application/json" \
      --data '{
      "model": "seedream-5-pro",
      "input": {
        "prompt": "Editorial portrait in natural light",
        "resolution": "2K",
        "aspect_ratio": "3:4",
        "image_urls": [
          "https://example.com/front.jpg",
          "https://example.com/back.jpg"
        ]
      }
    }'

    Credits

    PresetCredits
    1K10
    2K20

    Custom sizes above 2,360,000 pixels use the higher tier.

    The first reference image is included. Each additional reference image costs 1 credit.

    Constraints

    Omitting size uses resolution 1K and aspect_ratio 1:1 by default.

    Use custom size or preset resolution/aspect_ratio, not both. Layer decomposition is not supported.

    Use returned dimensions when available.

    Response

    A successful submission returns HTTP 202 and a request ID. Response excerpt:

    JSON
    {
      "id": "REQUEST_ID",
      "model": "seedream-5-pro",
      "status": "processing"
    }
    Continue readingPoll & download