MiniMax API v1 new Agent API:

It costs 1 to 4 credits to generate an image and 1 credit to generate a song. With the $79.99/m Master account (12,000 credits), you can generate ~12,000 songs or up to 12,000 images. Nano Banana 2/Pro costs 4 credits, so you can generate 3,000 images per month.

Nano Banana 2/Pro deployment provided by MiniMax has less content moderation compared to Google Flow and is capable of editing photos of minors or famous people.

  • Image editing with Nano Banana 2/Pro - Photo modernization POST agent

Input

curl --location 'https://api.useapi.net/v1/minimax/agent' \
--header 'Authorization: Bearer user:12345-…' \
--form 'prompt="Make this photo look modern, retain 100% human face identity."' \
--form 'models="nano-banana-2"' \
--form 'file=@/path/to/old-photo.jpg'

Result

  • Image editing with Nano Banana 2/Pro - Adding objects to people POST agent

Input

curl --location 'https://api.useapi.net/v1/minimax/agent' \
--header 'Authorization: Bearer user:12345-…' \
--form 'prompt="Make people in the photo wear red MAGA hats."' \
--form 'models="nano-banana-2"' \
--form 'file=@/path/to/photo.jpg'

Result

  • Speech generation with Speech 2.5 HD - Multilingual Jokes POST agent
curl --location 'https://api.useapi.net/v1/minimax/agent' \
--header 'Authorization: Bearer user:12345-…' \
--form 'prompt="Generate speech using confident female alto voice with sophisticated American accent, articulate and alluring. See provided below text:
===
English
Joke: What do you call a fake noodle?
Answer: An Impasta.
Spanish
Joke: ¿Qué hace un pez?
Answer: Nada.
(Translation: What does a fish do? Nothing / Swims. It'\''s a pun.)
French
Joke: Que fait une fraise sur un cheval ?
Answer: Tagada tagada!
(Translation: What does a strawberry do on a horse? Tagada tagada! - The sound of galloping.)
Portuguese
Joke: O que o zero disse para o oito?
Answer: Belo cinto!
(Translation: What did the 0 say to the 8? Nice belt!)
Russian
Joke: Колобок повесился.
Answer: The round bread ball hanged himself.
(Dark humor: A ball has no neck.)
German
Joke: Was ist rot und schlecht für die Zähne?
Answer: Ein Backstein.
(Translation: What is red and bad for your teeth? A brick.)
Italian
Joke: Cosa fa un pomodoro al mattino?
Answer: La salsa.
(Translation: What does a tomato do in the morning? The sauce / The dance.)
==="' \
--form 'models="speech-2.5-hd-preview"'

Result

  • Generate a video from the altered image with a composed soundtrack POST agent

Input

curl --location 'https://api.useapi.net/v1/minimax/agent' \
--header 'Authorization: Bearer user:12345-…' \
--form 'prompt="Remove speech bubbles. Create a video of him dancing, and create a Mario-game inspired soundtrack for the video."' \
--form 'models="nano-banana-2,hailuo-2.3,minimax-music-2.0"' \
--form 'file=@/path/to/mario.jpg'

Result: attachment 1/4 - altered image

Result: attachment 2/4 - video

Result: attachment 3/4 - generated song

Result: attachment 4/4 - final result