API
Image, audio, video and science
Try multimodal tasks and use their inference endpoints according to the model’s capabilities.
Try a task
Open Try models and choose a task such as Images, Generate audio, Transcribe audio, Object detection and pose, Biomolecular or Forecasting. Select a compatible model, prepare the input and run the task. Open Code to inspect an example.
Images and vision
The API offers /v1/images/generations for generation, /v1/images/edits for editing and /v1/images/detections for detection and pose. File inputs can require multipart/form-data; check the fields and limits for each operation in the API reference.
Audio and video
Use /v1/audio/speech for speech, /v1/audio/transcriptions for transcription and /v1/audio/voices to list voices. Video supports /v1/videos and jobs at /v1/video-jobs: check job status before downloading the content.
Scientific prediction
/v1/timeseries/forecasts accepts forecasting requests. /v1/biomolecular/jobs creates and retrieves biomolecular jobs and their artifacts. Each task needs a compatible model or deployment; check fields and conditions in the API reference.
API example
Generate an image with a compatible model. Replace image-model with its identifier; inference can consume balance.
Set QDIV0_API_KEY to an account tk_ key or personal uk_ key. A personal key uses its default account unless you select another with X-Account-ID.
1curl --fail-with-body \
2 --request POST \
3 "https://api.qdiv0.com/v1/images/generations" \
4 -H "Authorization: Bearer $QDIV0_API_KEY" \
5 -H "Content-Type: application/json" \
6 --data '{"model":"image-model","prompt":"A lighthouse by the sea"}'Another API example 2
Transcribe a file: set QDIV0_AUDIO_MODEL to a compatible transcription model and QDIV0_AUDIO_FILE to the file path.
Set QDIV0_API_KEY to an account tk_ key or personal uk_ key. A personal key uses its default account unless you select another with X-Account-ID.
1curl --fail-with-body \
2 --request POST \
3 "https://api.qdiv0.com/v1/audio/transcriptions" \
4 -H "Authorization: Bearer $QDIV0_API_KEY" \
5 -F "model=$QDIV0_AUDIO_MODEL" \
6 -F "file=@$QDIV0_AUDIO_FILE"Another API example 3
Submit a video job with a compatible model. Replace video-model and set QDIV0_IDEMPOTENCY_KEY to a unique value; generation can consume resources. Then inspect the returned ID at /v1/video-jobs/{job_id}.
Set QDIV0_API_KEY to an account tk_ key or personal uk_ key. A personal key uses its default account unless you select another with X-Account-ID.
1curl --fail-with-body \
2 --request POST \
3 "https://api.qdiv0.com/v1/video-jobs" \
4 -H "Authorization: Bearer $QDIV0_API_KEY" \
5 -H "Idempotency-Key: $QDIV0_IDEMPOTENCY_KEY" \
6 -H "Content-Type: application/json" \
7 --data '{"model":"video-model","prompt":"A lighthouse by the sea","task":"t2v","duration":5}'