Images & video API
Text to image, image editing, text to video, image to video, and motion video: your character copies the moves in a video. Submit a prompt, poll, download the file. Priced per result: $0.004 an image, $0.35 for a 5-second video with sound. No subscription, no GPU to rent.
Sign up with Discord, Google, GitHub or Twitch for $1 of trial credit: enough for 250 images or 2 video clips. The same key calls the chat models, music and voice.
Launch party: +200% credits on every pack, while the first 1,000,000 credits last (998,250 left). Bonus credits are valid for 12 months. Ends November 27. Terms
What it makes
1024 × 1024 PNG by default; larger images by the megapixel. The slower high-detail model is $0.016.
Send a picture and say what to change.
A 5-second clip at 1280 × 704 with sound is $0.35.
Send a still and it moves: a product shot, a portrait, a scene.
Send a character and a song (or a voiceover): it sings or talks, for as long as the audio runs. 480p; a 3-minute song is $4.50.
Send a character and a video of someone moving: your character does the same moves, with the video's sound. 480p, up to 20 seconds a job; a 10-second dance is $0.30.
Also on the key: a two-minute song $0.03, a voiceover $0.10 per 1,000 characters, a sound effect from $0.005, and open chat models by the token. Credits at face value: 1 credit = 1¢.
Real output
Three calls
# 1. submit
curl https://api.legit2compute.com/jobs -H "x-api-key: $L2C_API_KEY" -H "content-type: application/json" \
-d '{"pipeline": "video_t2v", "inputData": {"prompt": "a red fox trotting through fresh snow"}}'
# 2. poll until "status": "completed"
curl https://api.legit2compute.com/jobs/<job_id> -H "x-api-key: $L2C_API_KEY"
# 3. download (it redirects to the file, hence -L)
curl -L -o fox.mp4 https://api.legit2compute.com/jobs/<job_id>/download -H "x-api-key: $L2C_API_KEY"image_generate, image_edit, video_t2v, video_i2v. Each takes a prompt, with optional negative and seed; new images and video take width and height, video takes seconds. An edit or an image to video sends its picture as inputImage (a URL) beside inputData.video_motion takes the character picture as input_image, the video to copy as input_video (https links, or files uploaded first) and seconds to render, up to 20. The look and the background come from the picture, not the video; the video's sound is kept."private": true and the job runs only on machines we own and operate, at twice the price.Sign up with Discord, Google, GitHub or Twitch, copy your key, run the three calls above. Or just ask for one in the chat.