Appearance
Models
List all available models on the 3xCoder relay.
List Models
GET https://api.3xcoder.com/v1/modelsReturns a list of all models currently available through the API.
Request
No request body required. Include your API key in the Authorization header.
Response
json
{
"object": "list",
"data": [
{
"id": "gpt-4o",
"object": "model",
"created": 1700000000,
"owned_by": "openai"
},
{
"id": "claude-sonnet-4-20250514",
"object": "model",
"created": 1700000000,
"owned_by": "anthropic"
},
{
"id": "gemini-2.5-pro",
"object": "model",
"created": 1700000000,
"owned_by": "google"
}
]
}Examples
bash
curl https://api.3xcoder.com/v1/models \
-H "Authorization: Bearer $OPENAI_API_KEY"javascript
const response = await fetch('https://api.3xcoder.com/v1/models', {
headers: {
'Authorization': `Bearer ${process.env.OPENAI_API_KEY}`
}
})
const data = await response.json()
console.log(data)python
from openai import OpenAI
client = OpenAI(
api_key="your-api-key",
base_url="https://api.3xcoder.com/v1"
)
models = client.models.list()
for model in models:
print(model.id)go
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.3xcoder.com/v1/models", nil)
req.Header.Set("Authorization", "Bearer "+apiKey)
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}Retrieve a Model
GET https://api.3xcoder.com/v1/models/{model}Retrieves details about a specific model.
Example
bash
curl https://api.3xcoder.com/v1/models/gpt-4o \
-H "Authorization: Bearer $OPENAI_API_KEY"Response
json
{
"id": "gpt-4o",
"object": "model",
"created": 1700000000,
"owned_by": "openai"
}