Skip to main content

Minimal request

{
  "model": "sora-2",
  "prompt": "An 8-second Api.Go product demo animation",
  "seconds": 8,
  "size": "1280x720"
}

cURL example

curl https://mass.apigo.ai/v1/videos \
  -H "Authorization: Bearer $TIDEMIND_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "sora-2",
    "prompt": "An 8-second Api.Go product demo animation",
    "seconds": 8,
    "size": "1280x720"
  }'

Python example

import requests

response = requests.post(
    "https://mass.apigo.ai/v1/videos",
    headers={
        "Authorization": "Bearer <TIDEMIND_API_KEY>",
        "Content-Type": "application/json",
    },
    json={
        "model": "sora-2",
        "prompt": "An 8-second Api.Go product demo animation",
        "seconds": 8,
        "size": "1280x720",
    },
)

print(response.json())

Node.js example

const response = await fetch("https://mass.apigo.ai/v1/videos", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.TIDEMIND_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    model: "sora-2",
    prompt: "An 8-second Api.Go product demo animation",
    seconds: 8,
    size: "1280x720",
  }),
});

console.log(await response.json());

Best practices

  • Treat create, status, and content retrieval as separate steps
  • Poll at a reasonable interval with backoff
  • Proxy large downloads or temporary URLs through the backend