Quick start

From zero to your first generated video in three requests.

Demo console. The Artlio API isn't live yet. Keys created here are demo keys and the numbers come from your activity in the studio. Request early access

  1. 1

    Create a key

    Open API keys, create one and keep it on your server as an environment variable.

    1export ARTLIO_API_KEY="osk_live_…"
  2. 2

    Send your first request

    POST a prompt to a model. You get a generation id back straight away.

    1const res = await fetch(2  "https://api.artlio.ai/v1/bytedance/seedance-2-5/text-to-video",3  {4    method: "POST",5    headers: {6      Authorization: `Bearer ${process.env.ARTLIO_API_KEY}`,7      "Content-Type": "application/json",8    },9    body: JSON.stringify({10      prompt: "A cinematic tracking shot along a sunlit coastal road",11      duration: 5,12      resolution: "720p",13      aspect_ratio: "16:9",14      generate_audio: true,15    }),16  },17);18const job = await res.json(); // { id: "gen_…", status: "queued" }
  3. 3

    Get the result

    Poll the generation until it succeeds, or pass webhook_url in the request to be called when it's ready.

    1curl https://api.artlio.ai/v1/generations/gen_8f2k1x \2  -H "Authorization: Bearer $ARTLIO_API_KEY"3 4{5  "id": "gen_8f2k1x",6  "status": "succeeded",7  "outputs": [{ "url": "https://cdn.artlio.ai/gen_8f2k1x.mp4" }]8}