Skip to content
Book a callStart free
Reference

list_models

List models and their prices

View as Markdown

GET /api/v2/models

Public: works without a key. With a key it counts toward your price-check limit.

Query

NameTypeRequiredDescription
kind“video” | “image”no

Example

curl "https://app.diffusr.ai/api/v2/models?kind=video" \
-H "Authorization: Bearer $DIFFUSR_KEY"

Response

200 ApiModelList

The models you can pass as `model`, with prices.

NameTypeRequiredDescription
modelsobject[]yes
models[].idstringyesPass this as model.
models[].namestringyes
models[].kind“video” | “image”yes
models[].aspect_ratiosstring[]yes
models[].resolutionsstring[]no
models[].duration_secobjectno
models[].duration_sec.minnumberyes
models[].duration_sec.maxnumberyes
models[].duration_sec.defaultnumberyes
models[].max_reference_imagesnumberyes
models[].takes_videobooleanyes
models[].takes_audiobooleanyesTakes voice or sound clips in audio_urls.
models[].reference_labelsobjectno
models[].reference_labels.imagestringno
models[].reference_labels.videostringno
models[].reference_labels.audiostringno
models[].costobject | object | object | objectyesThe price as a simple number, at the API direct tariff.
models[].priceobjectyes
models[].price.unit“second” | “image”yes
models[].price.creditsnumberyesCredits per second of video, or per image, at the settings in at.
models[].price.atobjectyes
models[].price.by_resolutionmap of numbernoThe same price at each resolution, when the model has several.
models[].price.tariff“direct”yes
models[].price.tariff_versionstringyes
models[].aboutstringno
models[].caveatstringno

Errors

Every error body is { error, code, request_id, ... }. All codes and what to do.

  • 422: The request is not valid (VALIDATION_FAILED, INVALID_JSON, PREFLIGHT_FAILED, CALLBACK_URL_INVALID, REFERENCE_*). `issues` lists each problem. Nothing was charged.
  • 429: Too many requests or jobs (RATE_LIMITED, CONCURRENCY_LIMIT, UPLOAD_QUOTA, …). Wait Retry-After seconds, then retry.
  • 500: Our fault (INTERNAL_ERROR). Quote request_id to support.
  • 503: Paused or busy (API_PAUSED, MODEL_PAUSED, PROVIDER_PAUSED, PROVIDER_BUSY, UNAVAILABLE). Wait Retry-After seconds, then retry.

Charges

Free. No credits are spent.