API Documentation
OpenAI-compatible. Generate images and video with one API.
Generate your first image in 4 lines
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
-
⚡
Quickstart
Generate your first image and video in under 2 minutes.
Read → -
🔑
Authentication
API keys, headers, and auth patterns.
Read → -
🖼️
Image Generation
Endpoints, parameters, and supported image models.
Read → -
🎬
Video Generation
Text-to-video, image-to-video, and async patterns.
Read → -
🧩
Models
Full model list with IDs, capabilities, pricing, and parameters.
Read → -
📦
SDKs & Libraries
Python, Node.js, and OpenAI SDK compatibility.
Read → -
🔗
Webhooks
Async callbacks for video generation and long-running tasks.
Read → -
📖
API Reference
Full endpoint reference with interactive examples.
Open →
💡 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.
Install
pip install openai
Python (OpenAI SDK)
npm install openai
Node.js (OpenAI SDK)
cURL / REST
The official OpenAI SDK works with Fluxpool. No proprietary SDK required. View all SDK options →
Base configuration
https://api.fluxpool.ai/v1
Authorization: Bearer fp_your_api_key
fp_xxxxxxxxxxxxxxxxxxxx
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 |