Base URLs & Routing
The Pawan.Krd API supports three URL patterns. They all reach the same endpoints — pick whichever fits your client best.
1. Standard base URL
The classic OpenAI-style base URL. The model is selected via the request bodymodel field.
📄Standard
https://api.pawan.krd/v12. Model-scoped base URL (single segment)
Insert the model id directly in the URL. Useful for tools that only let you set a base URL and not a model name (e.g. SillyTavern, Open WebUI, Janitor proxies).
📄Model in path
https://api.pawan.krd/pkrd/cosmosrp-3.5/v13. Provider/model base URL (two segments)
For models whose id contains a provider/name namespace (e.g. openai/gpt-oss-20b), you can split the namespace across path segments.
📄Provider + model in path
https://api.pawan.krd/openai/gpt-oss-20b/v1ℹ
Path overrides body
When a model is present in the URL path, it overrides the
model field in the request body. You can omit model from the body entirely.Endpoints under any base
Every endpoint is reachable from every base URL pattern. For example:
POST /v1/chat/completionsPOST /v1/completionsPOST /v1/embeddingsPOST /v1/rerankPOST /v1/moderationsPOST /v1/proofreadingsPOST /v1/images/generations,/v1/images/edits,/v1/images/upscalePOST /v1/videos/generations,/v1/videos/editsPOST /v1/audio/speech,/v1/audio/transcriptions,/v1/audio/translationsGET /v1/models,GET /v1/models/{modelId}
Example
💻curl
1curl https://api.pawan.krd/openai/gpt-oss-20b/v1/chat/completions \
2 -H "Authorization: Bearer pk-your_key" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "messages": [{ "role": "user", "content": "Hello!" }]
6 }'