cURL
curl --request GET \ --url https://dimilinks.com/v1/models \ --header 'Authorization: Bearer <token>'
{ "object": "list", "data": [ { "id": "gpt-image-2", "object": "model", "created": 1777080000, "owned_by": "chatgpt" } ] }
查询当前 API Key 可用的模型。
gpt-image-2
curl "https://dimilinks.com/v1/models" \ -H "Authorization: Bearer $DIMILINKS_API_KEY"
403 model_not_allowed
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Available models
"list"
Show child attributes