List models
curl --request GET \
--url https://api-direct.dimilinks.com/v1/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-direct.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://api-direct.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://api-direct.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://api-direct.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://api-direct.dimilinks.com/v1/models")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-direct.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>"
}
}Basics
List models
List the models available to the current API key.
GET
/
models
List models
curl --request GET \
--url https://api-direct.dimilinks.com/v1/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-direct.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://api-direct.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://api-direct.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://api-direct.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://api-direct.dimilinks.com/v1/models")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-direct.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://api-direct.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": "gpt-image-2.5-flare", "object": "model", "created": 1777080000, "owned_by": "" },
{ "id": "gpt-image-2.5-sunburst", "object": "model", "created": 1777080000, "owned_by": "" },
{ "id": "nano-banana-pro", "object": "model", "created": 1777080000, "owned_by": "" },
{ "id": "minimax-h3", "object": "model", "created": 1777080000, "owned_by": "" },
{ "id": "seedance 2.0", "object": "model", "created": 1777080000, "owned_by": "" },
{ "id": "seedance 2.5", "object": "model", "created": 1777080000, "owned_by": "" },
{ "id": "doubao-seedance-2-5-260628", "object": "model", "created": 1777080000, "owned_by": "" },
{ "id": "grok-imagine-video", "object": "model", "created": 1777080000, "owned_by": "" }
]
}
Recommended models
| Use case | Recommended models |
|---|---|
| General chat, writing, and long-document processing | claude-sonnet-5, claude-opus-4-8, gpt-5.5 |
| Complex reasoning / coding | claude-opus-4-8, kimi-k2.7-code, gpt-5.6-terra |
| Low-cost batch tasks | claude-haiku-4-5, gpt-5.4-mini, deepseek-v4-flash |
| Image generation / editing | gpt-image-2, gpt-image-2.5-flare, gpt-image-2.5-sunburst, nano-banana-pro |
Video generation (seedance/h3 group, per-second billing) | minimax-h3, seedance 2.0, seedance 2.5 |
Video generation (doubao seedance group, 720p only, per-token billing) | doubao-seedance-2-5-260628, doubao-seedance-2-0-260128 |
| Video generation (short clips) | grok-imagine-video |
Recommendations
- The model catalog changes as production capabilities evolve. Treat
/v1/modelsas 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’senable_groups. - Text models use
/v1/chat/completionsor/v1/messages; images use/v1/images/*; videos use/v1/videos/*.