Model listing

GET /v1/models returns the models your key may use, with sale prices in Rupiah. The same public list is on the Models page.

Request

curl
curl https://api.markas.ai.id/v1/models -H "Authorization: Bearer $MARKASAI_API_KEY"

When a key is restricted to certain models, only those models are listed.

Response

200 OK
{
  "object": "list",
  "data": [
    {
      "id": "MODEL_ID",
      "object": "model",
      "created": 1790000000,
      "owned_by": "markasai",
      "context_length": 200000,
      "max_output_tokens": 64000,
      "pricing": {
        "currency": "IDR",
        "per_tokens": 1000000,
        "input": "15287",
        "output": "76431",
        "cached_input": "1529",
        "cache_write_input": "19109"
      }
    },
    {
      "id": "IMAGE_MODEL_ID",
      "object": "model",
      "type": "image",
      "endpoint": "/v1/images/generations",
      "max_images_per_request": 4,
      "pricing": { "currency": "IDR", "per_unit": "image", "unit_price": "400" }
    },
    {
      "id": "VIDEO_MODEL_ID",
      "object": "model",
      "type": "video",
      "endpoint": "/v1/videos/generations",
      "max_videos_per_request": 1,
      "max_duration_seconds": 15,
      "pricing": {
        "currency": "IDR",
        "per_unit": "second",
        "resolutions": { "480P": "1345", "720P": "3023", "1080P": "7481" }
      }
    }
  ]
}

Fields

FieldMeaning
idThe value for the model parameter.
owned_bySlug of the service name.
context_lengthContext window in tokens, when known.
max_output_tokensOutput token limit per request, when known. max_tokens above it is rejected with 400.
pricing.input, pricing.outputRupiah per 1,000,000 tokens, as strings so they stay exact without float rounding.
pricing.cached_inputPrice of input tokens read from cache, when the model supports prompt caching.
pricing.cache_write_inputPrice of input tokens written to cache. When absent, the input price applies.
type, endpointMedia models only: image or video, with the endpoint to use.
pricing.unit_pricePer-image models: Rupiah per image.
pricing.image_outputToken-priced image models: Rupiah per 1,000,000 image output tokens.
pricing.resolutionsVideo models: Rupiah per second for each resolution.

Text models have no type. Models and prices can change, and new prices apply to later requests.