AI Image & Video API Library — RevidAPI AI Studio Developer Guide

The RevidAPI AI Studio API library lets you call Flux, Kling, Veo, and more through one REST API and one API Key — no juggling separate SaaS accounts. This guide covers endpoint choice, curl examples, and job polling for production pipelines.

AI Image & Video API Library — RevidAPI AI Studio Developer Guide

Table of contents

  1. Video tutorial
  2. What is included in the RevidAPI API library?
  3. Setup: API Key and environment
  4. Image API — Text to Image with Flux
  5. Video API — Text/Image to Video
  6. Endpoint comparison by use case
  7. Polling, common errors, and best practices
  8. Conclusion
  9. Frequently asked questions

Video tutorial

What is included in the RevidAPI API library?

RevidAPI AI Studio separates two main API groups: Image Generation API (text-to-image, image-to-image, inpainting, upscale) and Video Generation API (text-to-video, image-to-video, motion control, lipsync). Each group has its own models, parameters, and credit costs — but shares authentication and the POST job → GET status pattern.

On the web at app.revidapi.com/docs, the explorer lists every endpoint: POST /v1/image/generate, POST /v1/video/generate, POST /v1/motion-control, GET /v1/jobs/{job_id}. This is the “API library” demonstrated in the YouTube tutorial — ready for Postman, n8n, or Python/Node backends.

Setup: API Key and environment

Step 1: Sign up at revidapi.com/login and create an API Key in the Dashboard.

Step 2: Store the key in REVIDAPI_KEY. Never commit keys to Git. Use a secret manager in production.

Step 3: Production base URL: https://app.revidapi.com/api. All requests need Authorization: Bearer YOUR_KEY and Content-Type: application/json.

Image API — Text to Image with Flux

Text-to-image is the most common entry point for thumbnails, product mockups, and campaign key visuals. Flux Dev/Pro delivers high quality; Nano Banana optimizes speed and cost.

curl -X POST "https://app.revidapi.com/api/v1/image/generate" \
  -H "Authorization: Bearer $REVIDAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "flux-dev",
    "prompt": "Minimal product photo, white sneaker on marble, soft studio light, 4K",
    "width": 1024,
    "height": 1024,
    "num_images": 1
  }'

The response returns a job_id. Poll GET /v1/jobs/{job_id} every 2–5 seconds until status: completed.

Video API — Text/Image to Video

Video APIs support Kling 2.5/2.6/3.0, Veo 3, Seedance 2.0. Key params: duration, aspect_ratio (9:16 for TikTok/Reels), image_url for image-to-video.

Typical workflow: (1) image API for keyframe → (2) video API to animate → (3) optional lipsync. Chain in AI Studio Workflow or n8n without custom code.

curl -X POST "https://app.revidapi.com/api/v1/video/generate" \
  -H "Authorization: Bearer $REVIDAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling-2.5",
    "prompt": "Fashion model walks runway, cinematic lighting, slow motion",
    "aspect_ratio": "9:16",
    "duration": 5
  }'

Endpoint comparison by use case

Use caseEndpointSuggested modelOutput
YouTube thumbnail/v1/image/generateflux-devPNG/JPG
E-commerce product/v1/image/generatenano-bananaPNG 1:1
TikTok ad/v1/video/generatekling-2.5MP4 9:16
Cinematic ad/v1/video/generateveo-3MP4 16:9
Copy TikTok motion/v1/motion-controlmotion-v1MP4
Product review avatar/v1/kol-aikol-v1MP4 + audio

Polling, common errors, and best practices

429 Rate limit: use exponential backoff. 402 Insufficient credit: top up at app.revidapi.com/pricing. 422 Invalid model: check docs for current model names.

Log every job_id, store prompts and model versions, and track credit per campaign using the usage dashboard.

Conclusion

The RevidAPI image and video API library connects diverse AI models to your real content pipeline. Start with one endpoint, then scale to batch jobs, workflows, and multi-channel publishing — one API Key, transparent billing.

Updated June 2026 · RevidAPI team

Try AI Studio free

Try it on app.revidapi.com

Open app.revidapi.com

Frequently asked questions

How is RevidAPI different from calling Kling/Flux directly?

RevidAPI unifies models, auth, job handling, and Vietnamese ecosystem tools (Vietsub, download, n8n).

Are there rate limits?

Yes, by plan. Enterprise can contact support@revidapi.com for higher quotas.

Who owns the output?

Under RevidAPI terms, content you create belongs to you for commercial use.

Are webhooks supported?

Job polling is default; webhook support is expanding — see docs changelog.

Need enterprise AI setup? Contact Mido AI for custom RevidAPI workflow implementation.

Related articles