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_your_api_key"
)

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

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_your_api_key
API Key Format fp_xxxxxxxxxxxxxxxxxxxx
Content-Type
application/json

Supported models

Model ID Type Cost
flux-1.1-pro Image $0.03/gen
qwen-image-3-6-plus Image $0.02/gen
sdxl-1.0 Image $0.01/gen
ideogram-2.0 Image $0.04/gen
playground-v3 Image $0.02/gen
wan-video-2.1 Video $0.15/gen
kling-v2 Video $0.20/gen
runway-gen3 Video $0.50/gen
hunyuan-video Video $0.12/gen
luma-dream Video $0.10/gen
💬

Discord Community

Ask questions. Share prompts. Get help.

Join Discord →
🐛

GitHub Issues

Report bugs and request features.

Open GitHub →
📧

Email Support

For account and billing inquiries.

support@fluxpool.ai

Ready to build?

Get your API key