Magic Hour
  • Pricing
Video

Start your first video in under 60 seconds

Generate or edit video, image, and audio - free to start.
Start Creating Free
No credit card requiredFree daily creditsNo signup required
Join the Discord
Video
Company
PricingAboutBlogAPISkillsAll ToolsTemplatesAI ModelsPrivacy PolicyTerms of ServiceRefund Policy
Video Products
AI Avatar GeneratorAI UGC Ad GeneratorAI Video DubbingAI Video EditorAI Video ExpanderAI Video ExtenderAI Video TranslatorAI Video UpscalerAnimationAudio-to-VideoCharacter ReplaceColor GraderFace Swap VideoImage-to-VideoLip SyncMusic Video GeneratorSubtitle GeneratorTalking PhotoText-to-VideoVideo ColorizerVideo-to-Video
Image Products
AI Clothes ChangerAI Face EditorAI GIF GeneratorAI Headshot GeneratorAI Image EditorAI Image ExpanderAI Image GeneratorAI Image UpscalerAI Influencer GeneratorAI Meme GeneratorAI Selfie GeneratorAI Storyboard GeneratorBackground RemoverBody SwapFace Swap PhotoHead SwapPhoto ColorizerQR Code GeneratorCharactersMoodboards
Audio Products
AI Audio TranslatorAI Music GeneratorVideo-to-AudioVoice ChangerVoice ClonerVoice Generator
Support
CommunityFAQHelp CenterContact UsStatus
Social
Instagram
X
TikTok
Facebook
YouTube
LinkedIn
support@magichour.ai
Backed byCombinator

© 2026 Magic Hour AI, Inc.

Back to Blog
  1. Blog
  2. Videos

9 best AI image and video APIs: costs and integration

Runbo Li
Runbo Li
·
CEO of Magic Hour
·
Jun 14, 2025· 9 min read
AI Summary:
ChatGPTClaudeGeminiPerplexity
best ai image and video apis

Contents

Create with Magic Hour
Make videos and images with AI.
Quick Answer

Quick answer

Start with Magic Hour if your app needs image generation, video generation and related editing tools in one media workflow. Compare Replicate, fal and Runware when your priority is choosing among many hosted models. OpenAI suits direct GPT Image integration, Runway provides its own video and editing models, Leonardo connects visual experimentation to API code, Google offers its image and video models through cloud APIs, and Hugging Face supports dedicated model deployment.

Choose the provider and the model separately. The provider determines authentication, billing, queues, support and file delivery. The selected model determines which inputs, controls and outputs your feature can use.

Best AI image and video generation APIs compared

Provider

Most useful when

Image/video coverage

Cost basis

magic hour logoMagic Hour

Building a connected image, video and media-editing workflow

Generation plus tasks such as image editing, face swap, lip sync and upscaling

Credits specific to the endpoint, model and settings

Replicate logoReplicate

Evaluating hosted models with different capabilities

Both, depending on the model

Official models use defined output/input units; community models generally use compute time

Fal.ai logofal

Integrating model endpoints with managed queues and SDKs

Both, plus other modalities

Usually per output unit; model-specific rates and some compute-based exceptions

Runware logoRunware

Using a common task interface across model providers

Both, plus editing and other tasks

Model-specific request or compute pricing

Leonardo logoLeonardo

Designing generations visually before exporting API code

Image generation/editing and video workflows

Pay-as-you-go API credits or custom terms

OpenAI logoOpenAI GPT Image

Direct image generation and reference-based editing

Image generation and editing; GPT Image models do not generate video

Text/image input tokens and image output tokens

Runway ML logoRunway

Integrating Runway video generation and editing

Both, with capabilities defined per model

API credits per image, video second or other model-specific unit

Google logoGoogle

Working directly with Google models and cloud infrastructure

Imagen/Gemini image workflows and Veo video

Model-, modality- and output-specific rates

Hugging Face Inference Endpoints logoHugging Face Inference Endpoints

Deploying a compatible model on dedicated infrastructure

Depends on the model and serving implementation

Provisioned instance usage, with hourly rates billed by the minute

Reviewed September 13, 2026. This is a documentation-based comparison, not a measured speed or quality ranking. Magic Hour publishes this guide and is included in the comparison. Provider examples show capabilities; your own files and acceptance criteria determine whether the outputs work for your product.

Run one traceable media API job

Send one representative image or video brief through the exact endpoint, retain every request and result, and calculate accepted-output cost before increasing traffic.

Explore Magic Hour API

1. Magic Hour: connect generation with practical media tools

Magic Hour’s API documentation covers text-to-video, image-to-video, image generation and editing, plus workflows including face swap, talking photos, lip sync, background removal and upscaling. That is useful when the feature extends beyond generating one isolated image or clip.

For example, a product-marketing workflow might create a scene around a supplied product image, animate the approved image and add a separate localized presenter asset. Each step still needs its own supported inputs and output review.

What to check: The model and credit reference lists exact model IDs, supported resolutions, durations and rates. Free-plan access still consumes credits. Video cost changes with model, duration, resolution and, where applicable, audio. Select a model explicitly when you need reproducible settings; the default recommendation can change.

First step: Try the intended visual task in Image-to-Video or AI Image Editor, then use the matching documented endpoint for your integration. A browser tool’s free allowance is not a promise of the same API allowance.

2. Replicate: distinguish official and community models

Replicate offers a common platform for running models, but its two model categories have different operating assumptions. Official models have maintained APIs, warm availability and pricing by defined units such as images or video seconds.

Community models are maintained by their creators, generally billed by hardware runtime and can experience cold starts. Their documentation, licenses and support vary. You can create dedicated deployments when you need more control.

Use it for: Trying several model families without building GPU-serving infrastructure for each one.

What to check: Pin community model versions, review the specific model license and distinguish a per-output price from an estimated runtime cost. Do not assume a free credit offer or one model’s latency applies to the entire catalog.

3. fal: model endpoints with queue handling

fal’s Model APIs provide hosted image, video and other models through HTTP and supported clients. Its queue handles status tracking; the subscribe pattern handles polling for callers that want to wait for a result.

Use it for: A product that needs hosted models, documented input schemas and managed asynchronous execution.

What to check: fal’s pricing documentation bills Model APIs by each model’s unit, such as an image, megapixel, video or video second. Some models use compute-based billing. Deploying your own application on fal Serverless is a different product and pricing path. An hourly GPU quote should not be presented as the price of generating an image through a prebuilt model endpoint.

Measure latency using your chosen model and workload before designing a “results in three seconds” experience. The provider name alone cannot establish that promise. For a measured first-party reference, our 30-day Magic Hour API latency benchmark reports p50 end-to-end completion time and successful-job sample sizes for 11 video endpoints; it is an internal baseline, not a cross-provider ranking.

4. Runware: a shared task interface across models

Runware offers image, video, editing and other models through a common API. Requests use a task array, and its documentation covers REST, WebSockets and asynchronous result delivery. Its model identifiers identify what you are actually calling.

Use it for: An application that wants several model choices within a shared request and billing interface.

What to check: Read the task and model documentation for the selected operation. Different models can require different references, dimensions and controls even when the surrounding interface is shared. Keep the provider name distinct from the model author: Runware is not the creator of every model it hosts.

For pricing, compare the exact model and settings. A low example price or a vendor’s savings claim is not a universal rate for all images and videos.

5. Leonardo: move from visual controls to API requests

Leonardo’s API product emphasizes a visual design workflow: configure a generation, inspect the result and export the corresponding API code. It also offers reusable blueprints for workflows such as mockups and upscaling.

Use it for: A team that wants designers and developers to agree on a generation’s settings before integrating it.

What to check: Leonardo currently lists pay-as-you-go API credits and custom plans. API requests cost API credit; a free website account does not make production requests free. Its public page lists up to 10 concurrent generations on pay-as-you-go, with custom limits available. Confirm your account’s current allowance before estimating how long a batch will take.

6. OpenAI: direct GPT Image generation and editing

OpenAI introduced GPT Image 2.5 Flare and Sunburst on September 8, 2026. Flare is positioned for everyday generation; Sunburst emphasizes editing precision. These are image models, not video generators.

Use it for: A feature centered on creating or revising images from text and image references using OpenAI directly.

What to check: The Flare model page and Sunburst model page list quality options, rate limits and token pricing. Both list $5 per million text input tokens, $8 per million image input tokens and $30 per million image output tokens, before applicable caching. These are token rates, not a fixed price per image.

The documentation explicitly says the GPT Image 2 calculator does not estimate GPT Image 2.5 token consumption. Record actual usage for your chosen size, quality and editing inputs rather than reusing an older per-image estimate. A ChatGPT subscription is also a separate product from API billing.

7. Runway: video generation and editing through documented models

Runway’s API model documentation and pricing reference cover generation and editing models, including Gen-4.5 and Aleph 2.0. Its API has published usage tiers; the old description of a generally invite-only API with a waitlist is not a useful account of current access.

Use it for: Building a feature around a specific Runway model or supported editing operation.

What to check: Supported inputs, duration, output format and concurrency limits depend on the model and account tier. API credits are separate from web-app subscription credits. Professional or HDR output formats can add surcharges, so compare the export you will actually deliver.

8. Google: choose the model and API surface together

Google offers image generation and editing through models such as Gemini and Imagen, and video generation through Veo. Google Cloud and the Gemini Developer API have their own setup, availability and billing documentation.

Use it for: Working directly with a Google model, especially when your application already uses the corresponding cloud infrastructure.

What to check: Begin with the Gemini image-generation guide or Veo guide, then use pricing for the same API surface. Google Cloud’s pricing table separates image generation, editing, upscaling and video settings. A Google AI consumer subscription or Flow credit allowance is not a direct API rate.

9. Hugging Face: dedicated deployment when control matters

Hugging Face Inference Endpoints lets you deploy compatible models on dedicated infrastructure. This can suit custom weights, a specific serving implementation or deployment requirements that a shared model API does not meet.

Use it for: A team prepared to choose the model, hardware and scaling configuration, and to maintain the application around them.

What to check: The pricing documentation lists instance rates and bills by the minute, including applicable initialization and running time. Small CPU-instance prices are not GPU-generation prices. Dedicated hosting is not automatically cheaper: utilization, cold starts, engineering time and required capacity determine the economics.

Compare costs with a defined job

Use a fixed deliverable and include attempts you will discard. These examples illustrate billing math; they do not compare visual quality.

Example job

Published rate used

Calculated generation charge

Google logo100 generated image candidates using Imagen 4 Fast on Google Cloud

$0.02 per image

$2 for generation

Runway ML logo20 eight-second Gen-4.5 video candidates through Runway’s API, before optional format surcharges

12 credits per second at $0.01 per credit

1,920 credits, or $19.20

Runway ML logoThe same Runway job with two attempts for every candidate

320 generated seconds at the same rate

3,840 credits, or $38.40

Sources: Google Cloud pricing and Runway API pricing. These amounts exclude other services, storage, delivery, taxes and any minimum funding requirement.

For a credit-based provider, calculate the job in its own credits first, then use your actual funding terms to convert it to money. For dedicated compute, include running capacity rather than counting only completed files.

Finally, calculate total relevant spend ÷ accepted outputs. If only half of 100 generated images meet your requirements, your generation cost per accepted image is twice the cost per generated image. Keep API failures and visually rejected outputs separate because providers can bill them differently.

Use real examples to define your acceptance criteria

Our commercial image-to-video benchmark includes source images, exact prompts, request records and output files for 60 attempts across five named model selections through Magic Hour. Fifty-eight completed with downloadable videos. That establishes recorded completion, not a quality winner or a customer conversion rate.

Use the product, footwear, coffee and interior examples to identify details your own workflow must preserve. For a product ad, inspect the label, shape, materials and complete motion sequence. A technically successful API response can still contain a video you should not publish.

For images, use one repeatable task: place the supplied product on a neutral studio background, preserve its label and proportions, and return the required image size. Then ask for one specific edit, such as changing only the background color. Inspect what changed and what should have stayed fixed.

From a sample to a reliable product feature

  1. Define the deliverable. Record input types, dimensions, duration, audio, file format and the details that must remain unchanged.
  2. Run one representative request. Start with the provider’s current endpoint example and supported settings.
  3. Keep the job ID. For asynchronous work, poll or receive the documented completion event. A queued request is not a finished asset.
  4. Save the output. Check download availability and retention rules before relying on a temporary provider URL.
  5. Review quality and usage. Record the actual cost and whether the file meets the original brief.
  6. Increase volume within account limits. Check concurrency, failures and cancellation behavior before promising a delivery time to users.

After a timeout, look up an existing job before sending another creation request. Otherwise, a retry can create a second billable generation. Use idempotency features where the selected API documents them.

Frequently asked questions

Start with Magic Hour when you want generation and related media-editing tasks in one workflow. Compare Replicate, fal or Runware when choosing among hosted model families is the main requirement. Make the final choice on a representative task, not catalog size alone.

There is no useful universal answer without the model, output settings and workload. Compare cost per accepted image or clip. Include retries, unused provisioned capacity and minimum payments; do not compare a GPU-hour price directly with a per-image rate.

Some providers offer limited trial credits or free access to selected models. Verify the current account offer, supported settings and credit allowance. A free playground, website tier or model download does not imply unlimited free API inference.

You can keep your application’s job and file handling separate from provider-specific requests. But inputs, supported settings, moderation, billing and outputs can differ even for similarly named models. Recheck the complete workflow when switching.

See our image-generator API guide, image-to-video API comparison, or image-upscaling API guide. If you already know which Magic Hour task you need, go straight to its API documentation.

Runbo Li
Runbo Li is the Co-founder and CEO of Magic Hour, where he builds AI video and image tools for content creation. He is a Y Combinator W24 founder and former Data Scientist at Meta, where he worked on 0-1 consumer social products in New Product Experimentation. He writes about AI video generation, AI image creation, creative workflows, and creator tools.
See all articles

Continue Reading

Illustration showing text prompts transforming into AI-generated videos using developer APIs
Recommended next
Videos
7 best text-to-video APIs: models, queues & avatars

Compare fal.ai, Magic Hour, Google Veo, Runway Dev, Luma Agents and Synthesia APIs by model access, job lifecycle, controls and accepted-clip cost.

Jan 20, 2026
image-to-video AI APIs for startups converting images into short videos
Images
6 best image-to-video APIs (2026): models, cost & integration
Dec 19, 2025
 5 Best Lip Sync APIs for Production-Grade AI Video
Videos
6 best lip-sync APIs: inputs, costs and integration
Dec 13, 2025
Best subtitle APIs for creators and developers in 2026
App Picks
7 best subtitle APIs: caption files, video output and costs
Dec 25, 2025
Best AI Headshot APIs
Images
5 AI headshot APIs: endpoints, controls and costs
Jan 04, 2026