API Documentation

OpenAI-compatible. Generate images and video with one API.

Generate your first image in 4 lines

Python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.fluxpool.ai/v1",
    api_key="fp_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
)

response = client.images.generate(
    model="flux-2-pro",
    prompt="A dragon perched on a neon-lit Tokyo rooftop, 8K",
    size="1024x1024"
)

# response.data[0].url is a presigned S3 URL — poll it (GET with
# Range: bytes=0-0) until the file is ready. Expires after 1 hour.
print(response.data[0].url)

Explore the docs

💡 Already using the OpenAI SDK?

You're 90% done. Change the base URL to https://api.fluxpool.ai/v1 and use your Fluxpool API key. That's it. All OpenAI image generation SDK methods work out of the box.

See the compatibility guide →

Install

pip install openai

Python (OpenAI SDK)

npm install openai

Node.js (OpenAI SDK)

No installation required

cURL / REST

The official OpenAI SDK works with Fluxpool. No proprietary SDK required. View all SDK options →

Base configuration

Base URL
https://api.fluxpool.ai/v1
Auth Header
Authorization: Bearer fp_live_xxx
API Key Format fp_live_ + 40 hex chars
Content-Type
application/json

Supported models

The canonical model list is served live by the API. Call GET /v1/models to see everything you can call today. Two verified examples to get you started:

Model ID Type Endpoint
flux-2-pro Image /v1/images/generations
seedance-v2 Video /v1/videos/generations
📧

Need help?

Email us for account, billing, or API questions. We usually reply within one business day.

hi@fluxpool.ai

Ready to build?

Get your API key →