Skip to content

Playground

Try a prompt, then copy the request

Pick a demo model, adjust settings, and run a prompt. Responses are illustrative samples — nothing is sent to a model.

modelport-demo/atlas-chat

View model details
0.7
Illustrative output — no model is called
Ctrl / Cmd + Enter to run

Response

Run a prompt to see an illustrative response.

import os
import requests

response = requests.post(
    "https://api.modelport.example/v1/chat/completions",
    headers={
        "Authorization": f"Bearer {os.environ['MODELPORT_API_KEY']}",
        "Content-Type": "application/json",
    },
    json={
        "model": "modelport-demo/atlas-chat",
        "messages": [
            {"role": "user", "content": "Summarize this support ticket in two sentences."}
        ],
        "max_tokens": 256,
    },
    timeout=30,
)
response.raise_for_status()
print(response.json()["choices"][0]["message"]["content"])
Illustrative request — endpoint pending configuration.