CelebifyAI API Docs

Use development keys only. Never expose production keys.

Introduction#

The CelebifyAI API lets you generate images, videos, upscale media, and perform face swaps programmatically. All endpoints follow REST conventions and return JSON.

Base URL

https://celebifyai.com/api/v1

Quick Start

curl https://celebifyai.com/api/v1/account \
  -H "Authorization: Bearer cel_your_api_key"

Every request must include your API key in the Authorization header as a Bearer token. All responses are JSON with appropriate HTTP status codes.

Authentication#

Authenticate by including your API key as a Bearer token in the Authorization header of every request.

Authorization: Bearer cel_your_api_key

API keys start with the prefix cel_. You can create and manage keys in the Developer Portal.

Keep your key secret. Do not expose it in client-side code or public repositories. If compromised, revoke it immediately from the Developer Portal and generate a new one.

Rate Limits#

API access requires an active subscription (Base, Plus, or Pro). Rate limits are based on concurrent generations rather than requests per second. Polling status endpoints does not count toward the limit.

PlanAPI AccessConcurrent Generations
FreeNo1
BaseYes4
PlusYes6
ProYes10

Rate limits are shared between the web UI and the API. If you have 2 images generating via the website, those count toward your API concurrency limit.

Free plan users do not have API access. Subscribe to any paid plan to unlock the API.

Errors#

When an error occurs the API returns a JSON object with an error field containing a machine-readable code and a human-readable message.

{
  "error": {
    "code": "insufficient_credits",
    "message": "You need 15 credits but only have 3 remaining.",
    "details": {
      "required": 15,
      "available": 3
    }
  }
}
HTTP StatusCodeDescription
400invalid_jsonRequest body is not valid JSON
400missing_promptA required field is missing
400invalid_modelThe specified model ID does not exist
400invalid_urlA provided URL is malformed or unreachable
401unauthorizedInvalid or missing API key
402insufficient_creditsNot enough credits to complete the request
429rate_limit_exceededConcurrent generation limit reached
404not_foundThe requested resource was not found
500internal_errorAn unexpected server error occurred

Pagination#

List endpoints use cursor-based pagination. Pass limit and cursor as query parameters.

GET /api/v1/images?limit=20&cursor=clx123abc

Response format:

{
  "data": [ ... ],
  "has_more": true,
  "next_cursor": "clx456def"
}

When has_more is true, pass next_cursor as the cursor parameter in your next request to fetch the next page. The default limit is 20, maximum is 100.

Account#

Retrieve your current account status including credit balance, plan details, and concurrency usage.

GET/api/v1/account

Returns your current account information, credit balance, active plan, and concurrency status.

Models#

List all available models. Optionally filter by type. Each model includes its ID, name, type, credit cost, and maximum quantity per request.

GET/api/v1/models

Returns all available models. Use the optional ?type query parameter to filter.

Query Parameters

NameTypeRequiredDescription
typestringoptionalFilter by type: "image" or "video"

Image Models

IDNameTypeCreditsMax Qty
celebify-proCelebifyAI ProT2I154
celebify-noirCelebifyAI NoirT2I54
celebify-x-plusCelebifyAI X PlusT2I54
z-imageZ-ImageT2I0.54
seedream-3Seedream 3.0T2I2.24
seedream-4-t2iSeedream 4.0 T2IT2I2.26
seedream-4-editSeedream 4.0 EditI2I2.26
seedream-4.5-t2iSeedream 4.5 T2IT2I2.2-4.44
seedream-4.5-editSeedream 4.5 EditI2I2.2-4.44
flux-2-pro-t2iFlux 2 Pro T2IT2I3.14
flux-2-pro-i2iFlux 2 Pro I2II2I3.14
flux-2-flex-t2iFlux 2 Flex T2IT2I2.54
flux-2-flex-i2iFlux 2 Flex I2II2I2.54
qwen-t2iQwen T2IT2I0.6-2.24
qwen-i2iQwen I2II2I0.6-2.21
qwen-editQwen EditI2I0.6-2.24
grok-imagine-t2iGrok Imagine T2IT2I2.56
grok-imagine-i2iGrok Imagine I2II2I2.52

Video Models — Text-to-Video

IDNameTypeCredits
seedance-v1-lite-t2vSeedance V1 Lite T2VT2Vvaries
seedance-v1-pro-t2vSeedance V1 Pro T2VT2Vvaries
seedance-1-5-pro-t2vSeedance 1.5 Pro T2VT2Vvaries
kling-2-5-turbo-t2vKling 2.5 Turbo T2VT2Vvaries
kling-2-6-t2vKling 2.6 T2VT2Vvaries
kling-2-1-master-t2vKling 2.1 Master T2VT2Vvaries
wan-2-6-t2vWan 2.6 T2VT2Vvaries
wan-2-5-t2vWan 2.5 T2VT2Vvaries
veo-3-fast-t2vVeo 3 Fast T2VT2Vvaries
veo-3-quality-t2vVeo 3 Quality T2VT2Vvaries
sora-2-t2vSora 2 T2VT2Vvaries
sora-2-pro-t2vSora 2 Pro T2VT2Vvaries
hailuo-02-t2v-proHailuo 02 Pro T2VT2Vvaries
hailuo-02-t2v-standardHailuo 02 Standard T2VT2Vvaries
grok-imagine-t2vGrok Imagine T2VT2Vvaries

Video Models — Image-to-Video

IDNameTypeCredits
seedance-v1-lite-i2vSeedance V1 Lite I2VI2Vvaries
seedance-v1-pro-i2vSeedance V1 Pro I2VI2Vvaries
seedance-1-5-pro-i2vSeedance 1.5 Pro I2VI2Vvaries
kling-2-5-turbo-i2vKling 2.5 Turbo I2VI2Vvaries
kling-2-6-i2vKling 2.6 I2VI2Vvaries
kling-2-1-master-i2vKling 2.1 Master I2VI2Vvaries
wan-2-6-i2vWan 2.6 I2VI2Vvaries
wan-2-5-i2vWan 2.5 I2VI2Vvaries
veo-3-fast-i2vVeo 3 Fast I2VI2Vvaries
veo-3-quality-i2vVeo 3 Quality I2VI2Vvaries
sora-2-i2vSora 2 I2VI2Vvaries
sora-2-pro-i2vSora 2 Pro I2VI2Vvaries
hailuo-02-i2v-proHailuo 02 Pro I2VI2Vvaries
hailuo-02-i2v-standardHailuo 02 Standard I2VI2Vvaries
grok-imagine-i2vGrok Imagine I2VI2Vvaries

Use the GET /api/v1/models endpoint for the complete, up-to-date list of models and their parameters.

Image Generation#

Generate images using any available image model. Submit a generation request, then poll for the result or use the list endpoint to retrieve your history.

POST/api/v1/images/generate/{model}

Start an image generation with the specified model. Returns a generation object with status 'pending' or 'processing'.

Path Parameters

Request Body (JSON)

NameTypeRequiredDescription
promptstringrequiredText prompt describing the image to generate
negative_promptstringoptionalWhat to exclude from the image
aspect_ratiostringoptionalAspect ratio (e.g. "1:1", "16:9", "9:16"). Defaults to "1:1"
image_urlstringoptionalInput image URL for I2I (image-to-image) models
num_imagesintegeroptionalNumber of images to generate (1-4). Defaults to 1
seedintegeroptionalSeed for reproducible results

Request Body

GET/api/v1/images/{id}

Get the status and result of an image generation. Poll this endpoint until status is 'completed' or 'failed'.

Path Parameters

GET/api/v1/images

List your image generations with pagination. Returns most recent first.

Query Parameters

NameTypeRequiredDescription
limitintegeroptionalNumber of results (1-100, default 20)
cursorstringoptionalPagination cursor from previous response
modelstringoptionalFilter by model ID
statusstringoptionalFilter by status: "pending", "processing", "completed", "failed"

Video Generation#

Generate videos from text prompts or images. Video generation typically takes longer than image generation (30 seconds to several minutes depending on the model).

POST/api/v1/videos/generate/{model}

Start a video generation with the specified model. Returns a generation object with status 'pending' or 'processing'.

Path Parameters

Request Body (JSON)

NameTypeRequiredDescription
promptstringrequiredText prompt describing the video to generate (required for T2V models)
image_urlstringoptionalInput image URL (required for I2V models)
aspect_ratiostringoptionalAspect ratio (e.g. "16:9", "9:16", "1:1"). Defaults to "16:9"
durationnumberoptionalVideo duration in seconds (model-dependent)
seedintegeroptionalSeed for reproducible results

Request Body

GET/api/v1/videos/{id}

Get the status and result of a video generation. Poll this endpoint until status is 'completed' or 'failed'.

Path Parameters

GET/api/v1/videos

List your video generations with pagination. Returns most recent first.

Query Parameters

NameTypeRequiredDescription
limitintegeroptionalNumber of results (1-100, default 20)
cursorstringoptionalPagination cursor from previous response
modelstringoptionalFilter by model ID
statusstringoptionalFilter by status: "pending", "processing", "completed", "failed"

Face Swap#

Swap faces in images and videos. Provide a source face image and a target media file.

POST/api/v1/face-swap/image

Swap a face in an image. Costs 5 credits.

Request Body (JSON)

NameTypeRequiredDescription
swap_image_urlstringrequiredURL of the source face image
target_image_urlstringrequiredURL of the target image to modify

Request Body

POST/api/v1/face-swap/video

Swap a face in a video. Costs 30 credits.

Request Body (JSON)

NameTypeRequiredDescription
swap_image_urlstringrequiredURL of the source face image
target_video_urlstringrequiredURL of the target video to modify

Request Body

Upscaling#

Upscale images and videos to higher resolutions using AI-powered super-resolution.

POST/api/v1/upscale/image

Upscale an image to a higher resolution. Costs 5 credits.

Request Body (JSON)

NameTypeRequiredDescription
image_urlstringrequiredURL of the image to upscale
promptstringoptionalOptional prompt to guide the upscaling

Request Body

POST/api/v1/upscale/video

Upscale a video to a higher resolution. Approximately 20 credits (varies by duration and resolution).

Request Body (JSON)

NameTypeRequiredDescription
video_urlstringrequiredURL of the video to upscale

Request Body

Credit Costs#

Below is a complete reference of credit costs for all operations. Credits are deducted when a generation starts. If a generation fails due to a server error, credits are automatically refunded.

Image Models

ModelTypeCredits per Image
CelebifyAI ProT2I15
CelebifyAI NoirT2I5
CelebifyAI X PlusT2I5
Z-ImageT2I0.5
Seedream 3.0T2I2.2
Seedream 4.0 T2IT2I2.2
Seedream 4.0 EditI2I2.2
Seedream 4.5 T2IT2I2.2-4.4
Seedream 4.5 EditI2I2.2-4.4
Flux 2 Pro T2IT2I3.1
Flux 2 Pro I2II2I3.1
Flux 2 Flex T2IT2I2.5
Flux 2 Flex I2II2I2.5
Qwen T2IT2I0.6-2.2
Qwen I2II2I0.6-2.2
Qwen EditI2I0.6-2.2
Grok Imagine T2IT2I2.5
Grok Imagine I2II2I2.5

Video Models

ModelTypeCredits per Video
Seedance V1 Lite T2VT2Vvaries
Seedance V1 Pro T2VT2Vvaries
Seedance 1.5 Pro T2VT2Vvaries
Kling 2.5 Turbo T2VT2Vvaries
Kling 2.6 T2VT2Vvaries
Kling 2.1 Master T2VT2Vvaries
Wan 2.6 T2VT2Vvaries
Wan 2.5 T2VT2Vvaries
Veo 3 Fast T2VT2Vvaries
Veo 3 Quality T2VT2Vvaries
Sora 2 T2VT2Vvaries
Sora 2 Pro T2VT2Vvaries
Hailuo 02 Pro T2VT2Vvaries
Hailuo 02 Standard T2VT2Vvaries
Grok Imagine T2VT2Vvaries
Seedance V1 Lite I2VI2Vvaries
Seedance V1 Pro I2VI2Vvaries
Seedance 1.5 Pro I2VI2Vvaries
Kling 2.5 Turbo I2VI2Vvaries
Kling 2.6 I2VI2Vvaries
Kling 2.1 Master I2VI2Vvaries
Wan 2.6 I2VI2Vvaries
Wan 2.5 I2VI2Vvaries
Veo 3 Fast I2VI2Vvaries
Veo 3 Quality I2VI2Vvaries
Sora 2 I2VI2Vvaries
Sora 2 Pro I2VI2Vvaries
Hailuo 02 Pro I2VI2Vvaries
Hailuo 02 Standard I2VI2Vvaries
Grok Imagine I2VI2Vvaries

Other Operations

OperationCredits
Image Upscale5
Video Upscale~20 (varies by duration)
Face Swap (Image)5
Face Swap (Video)30
Credits are deducted when a generation begins. If a generation fails due to a server error, the credits are automatically refunded to your account. Check your balance anytime with GET /api/v1/account.

Need help? Contact Support or join our Discord.

CelebifyAI API Documentation