Quick Start
Welcome to our API services. This guide helps you quickly get started with image and video generation — and chat — using the OpenAI-compatible endpoint.
Step 1: Get an API Key
Create a key in the console (shown only once — store it safely).
- Visit the page linked below.
- Sign in to your account.
- Create a new API key.
- Save your key securely — it may be shown only once.
Step 2: Choose a Model
We provide multiple AI models. Pick one that fits your task.
Text generation models
- GPT-4o: Strong dialogue and text generation.
- Claude: High-performance conversational model.
- Gemini: Google multimodal large language model.
Image generation models
- GPT-4o-image: High-quality image generation.
Video generation models
- VEO-class: Professional video generation.
Step 3: Send a Request
Text generation example
curl -X POST https://api.openfluxhub.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4-1-fast-non-reasoning",
"messages": [
{
"role": "user",
"content": "Hello, please introduce yourself"
}
]
}'Image generation example
curl -X POST https://api.openfluxhub.com/v1/images/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-imagine-image",
"prompt": "A cute panda",
"size": "1:1",
"n": 1
}'Video generation example
curl -X POST https://api.openfluxhub.com/v1/videos/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-imagine-video",
"prompt": "Waves crashing against the shore",
"duration": 15,
"aspect_ratio": "16:9"
}'Step 4: Check Task Status
Image and video jobs are often asynchronous. Poll task status until the result is ready.
curl -X GET https://api.openfluxhub.com/v1/tasks/YOUR_TASK_ID \
-H "Authorization: Bearer YOUR_API_KEY"What’s Next
API base: https://api.openfluxhub.com/v1