What is the complete chat endpoint?
The complete endpoint is https://relay-api.getapi.pro/v1/chat/completions.
GET API · Developer integrations
Get API uses https://relay-api.getapi.pro/v1 as the base URL, authenticates with a Bearer API key, and accepts a JSON body containing model and messages at /chat/completions. Compatibility reduces basic migration effort but does not make every provider-specific parameter identical; use the integration guide for complete parameters, streaming behavior, and error handling.
Use the base URL when constructing the SDK client; it appends the operation path. Supplying the full chat endpoint as the base URL can produce a duplicated path. The example below uses Chat Completions, not Responses or an Anthropic-native request.
A shared message shape can remain stable while roles, sampling controls, tools, and media formats vary by model. Validate every non-core feature explicitly instead of relying on silent field handling.
For an authentication error, check the key and the service that issued it. For a missing model or route, compare the exact model identifier, account access, and final request path. A timeout or upstream error does not prove your key is invalid; inspect the response before retrying.
Install the openai package and run in a local terminal or on your server. Use your own key and an available model; real requests may incur charges. Never embed keys in a web page. The migration example selects the provider through server environment variables, without automatic retries or fallback.
# python -m pip install openai
from getpass import getpass
from openai import OpenAI
model = input("Model identifier from the Get API catalog: ").strip()
with OpenAI(
base_url="https://relay-api.getapi.pro/v1",
api_key=getpass("Get API key: "),
timeout=30.0,
max_retries=0,
) as client:
response = client.chat.completions.create(
model=model,
messages=[{"role": "user", "content": "Reply with a short greeting."}],
)
print(response.choices[0].message.content)The complete endpoint is https://relay-api.getapi.pro/v1/chat/completions.
The URL is public, but a production API key should not be exposed in browser code. Use your own secure backend.
Compatibility covers the common request shape, while model-specific features depend on actual support and documented mapping.
Business inquiries: business@honeykid.cn