SelamGPT PlatformSelamGPT
docs v1.0.0
GET
/modelsList Models
Lists all available Selam family models. Returns model IDs, capabilities, and tier access information.
OpenAI Compatible
This endpoint is fully compatible with OpenAI's models API. Simply change the base URL and use your Selam API key.
Request
This endpoint requires no parameters. Simply make a GET request with your API key.
Response
1{
2 "object": "list",
3 "data": [
4 {
5 "id": "selam-plus",
6 "object": "model",
7 "created": 1677610602,
8 "owned_by": "selamgpt",
9 "tier": "standard",
10 "capabilities": ["chat", "streaming", "function_calling"]
11 },
12 {
13 "id": "selam-pro",
14 "object": "model",
15 "created": 1677610602,
16 "owned_by": "selamgpt",
17 "tier": "enhanced",
18 "capabilities": ["chat", "streaming", "function_calling", "vision"]
19 }
20 ]
21}Examples
1from openai import OpenAI
2
3client = OpenAI(
4 api_key="YOUR_API_KEY",
5 base_url="https://api.selamgpt.com/v1"
6)
7
8models = client.models.list()
9
10for model in models.data:
11 print(f"{model.id} - Tier: {model.tier}")Was this page helpful?