Skip to main content
GET
/
models
List models
curl --request GET \
  --url https://dimilinks.com/v1/models \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://dimilinks.com/v1/models"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://dimilinks.com/v1/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://dimilinks.com/v1/models",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://dimilinks.com/v1/models"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://dimilinks.com/v1/models")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://dimilinks.com/v1/models")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "object": "list",
  "data": [
    {
      "id": "claude-sonnet-5",
      "object": "model",
      "created": 1777080000,
      "owned_by": ""
    }
  ]
}
{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"code": "<string>"
}
}
List the models that the current key can call. The returned data[] includes text, image, and video models; distinguish them by their id prefixes.

Request

curl "https://dimilinks.com/v1/models" \
  -H "Authorization: Bearer $DIMILINKS_API_KEY"

Response

{
  "object": "list",
  "data": [
    { "id": "claude-opus-4-8",       "object": "model", "created": 1777080000, "owned_by": "" },
    { "id": "claude-sonnet-5",       "object": "model", "created": 1777080000, "owned_by": "" },
    { "id": "claude-haiku-4-5",      "object": "model", "created": 1777080000, "owned_by": "" },
    { "id": "gpt-5.5",               "object": "model", "created": 1777080000, "owned_by": "" },
    { "id": "gpt-5.6-terra",         "object": "model", "created": 1777080000, "owned_by": "" },
    { "id": "kimi-k2.7-code",        "object": "model", "created": 1777080000, "owned_by": "" },
    { "id": "qwen3.7-max",           "object": "model", "created": 1777080000, "owned_by": "" },
    { "id": "gpt-image-2",           "object": "model", "created": 1777080000, "owned_by": "" },
    { "id": "grok-imagine-video",    "object": "model", "created": 1777080000, "owned_by": "" }
  ]
}
Use caseRecommended models
General chat, writing, and long-document processingclaude-sonnet-5, claude-opus-4-8, gpt-5.5
Complex reasoning / codingclaude-opus-4-8, kimi-k2.7-code, gpt-5.6-terra
Low-cost batch tasksclaude-haiku-4-5, gpt-5.4-mini, deepseek-v4-flash
Image generation / editinggpt-image-2
Video generationgrok-imagine-video

Recommendations

  • The model catalog changes as production capabilities evolve. Treat /v1/models as the runtime source of truth instead of hardcoding model IDs.
  • For guidance on selecting recent models and capability fields, continue to Model selection and updates.
  • Models belong to different groups, and the group directly determines the billing multiplier. See Model groups & pricing.
  • If you receive 403 model_not_allowed, check whether the key is authorized for the model. In most cases, the API key’s available groups do not intersect the model’s enable_groups.
  • Text models use /v1/chat/completions or /v1/messages; images use /v1/images/*; videos use /v1/videos/*.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

Available models

object
string
required
Example:

"list"

data
object[]
required