# FLUX 3 Image (`black-forest-labs/flux-3-image`): API > black-forest-labs/flux-3-image is an image generation model from Black Forest Labs you can call on the OceanToken API; it supports image input. Endpoint: `POST https://api.oceantoken.ai/v1/images/generations` (also `/v1/images/edits`). Auth: `Authorization: Bearer $OCEANTOKEN_API_KEY`. OpenAI-compatible; the OpenAI SDKs work with base URL https://api.oceantoken.ai/v1. ## Request parameters - `model` (string; required): This model's ID. - `prompt` (string; required): What to draw. - `size` (string; 21:9, 2:1, 16:9, 3:2, 7:5, 4:3, 5:4, 1:1, 4:5, 3:4, 5:7, 2:3, 9:16, 1:2, 9:21): Aspect ratio. Width x height such as `1024x1024` is accepted too and mapped to its ratio. - `quality` (string; 1K, 2K, 4K): Resolution tier; `low`, `medium` and `high` are accepted as 1K, 2K and 4K. - `images` (array; up to 10 items): Up to 10 reference images to start from or draw on, each a public https:// URL or a data URL. The request is then an edit. ## Example: Basic ```bash curl https://api.oceantoken.ai/v1/images/generations \ -H "Authorization: Bearer $OCEANTOKEN_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "black-forest-labs/flux-3-image", "prompt": "A lighthouse at dawn, watercolor", "size": "21:9" }' ``` ```python import os from openai import OpenAI client = OpenAI(base_url="https://api.oceantoken.ai/v1", api_key=os.environ["OCEANTOKEN_API_KEY"]) result = client.images.generate( model="black-forest-labs/flux-3-image", prompt="A lighthouse at dawn, watercolor", size="21:9", ) print(result.data[0].url) # download within 24 hours ``` ## Response - `created` (integer): Unix time. - `data[].url` (string): The image. Download it within 24 hours. ```json { "created": 1792000000, "data": [ { "url": "https://..." } ] } ``` ## More - Model page: https://docs.oceantoken.ai/models/black-forest-labs/flux-3-image - This spec as JSON (with a JSON Schema of the request): https://docs.oceantoken.ai/models/black-forest-labs/flux-3-image/spec.json - Guide: https://docs.oceantoken.ai/guides/images - All models: https://docs.oceantoken.ai/llms.txt