OpenArt API guide

openart.ai

Use OpenArt to generate images and videos from prompts, check generation status, and estimate credit costs before submitting a video.

Actions and inputs

image gen

Generate images from a text prompt.

Inputs prompt, image model, image count

video gen

Generate videos from a text prompt.

Inputs prompt, video model, duration, video count

media get

Check a generation's status and retrieve its media URL when ready.

Inputs resource ID

cost estimate

Estimate the credit cost of a video generation.

Inputs video model, duration, video count

Generated images

Create

Generate an image in your workspace after approving the credit cost.

Inputs Prompt, model, aspect ratio, image count, credit approval

Read

Open an image in your generation history to view or download it.

Inputs Generation ID or history entry

Update

Edit your image with an available image editor and save the result as a new version without replacing the original.

Inputs Source image, edit instructions or selected area, credit approval if required

Delete

Remove an unwanted image from your own generation history without affecting downloaded copies.

Inputs Image or history entry, confirmation