Get API

GET API · Major model APIs

GPT API: from API key to your first response

To access catalog-listed GPT models with Get API, keep Bearer API key authentication, a messages request body, and the OpenAI-compatible chat endpoint, then select an available GPT entry with the model field. Treat the live catalog as authoritative for model names, availability, and pricing, and validate quality, latency, and cost with your own representative tasks before production use.

Get a key and choose a GPT model

Sign in to Get API, create an API key in the console, and copy a GPT model identifier from Models and pricing. A ChatGPT subscription or an OpenAI-issued key does not replace a Get API key. Get API is a third-party service, not the official OpenAI API.

  • Check that your key can access the chosen model
  • Review the input and output billing units before sending a request
  • Model availability and pricing can change; the live catalog is authoritative

Keep the request layer stable

A unified API reduces duplicated provider plumbing. Centralize the base URL and credential, keep the model field configurable, and retain application-level controls for timeouts, retries, logging, and failure handling.

  • Use https://relay-api.getapi.pro/v1 as the base URL
  • Send chat requests to /chat/completions
  • Keep credentials in server-side secrets

Choose with representative evaluations

Public leaderboards are useful for discovery, not final acceptance. Run fixed prompts and record correctness, format adherence, time to first token, total latency, and measured token use under the same conditions.

  • Define pass criteria before comparing answers
  • Test both short and longer-context workloads
  • Record the model identifier and evaluation date

Python request example

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)

Frequently asked questions

Can one Get API key switch between GPT models?

You can change the model field among catalog entries available to that key. Live permissions, balance, and availability remain authoritative.

How much does GPT API access cost?

Use Models and pricing to check the selected model and billing unit, then confirm your account terms in the console. There is no single price for the whole GPT family; compare input, output, and any applicable cached-token charges rather than assuming a ChatGPT subscription includes API usage.

Should a browser application store the API key?

No. Production credentials belong in a server-side secret store or another controlled environment, never public browser code or source control.

Business inquiries: business@honeykid.cn