Developer integration guide

Connect your app to Copent AI models

A practical path from checking account access to validating a production integration. Confirm the current model, endpoint, and price in your account before sending requests.

Keep credentials server-side. Test with a small request before production.

DiscoveryModelsAPI
AUTH REQUIRED
GET/v1/models

SERVER-SIDE REQUEST

curl --fail-with-body \
  --connect-timeout 10 --max-time 30 \
  --header "Authorization: Bearer ${COPENT_API_KEY}" \
  https://one.copentai.com/v1/models
Use a valid API key from your account. An unauthenticated request returns HTTP 401; model and operation access may vary by account.
Account-awareCheck current access
Server-side keysKeep secrets private
Small test firstValidate response and usage
Production-readyReview limits and policies

INTEGRATION FLOW

From model selection to a tested request

Model names alone do not establish supported operations. Verify the live details for your account, then integrate in small, observable steps.

01 / ACCESS

Confirm model and price

Review the model and pricing page, then confirm account-specific availability, supported operations, price unit, balance, and limits in the console.

02 / CREDENTIALS

Protect your API key

Store keys in server-side environment configuration or a secret manager. Do not put them in browser code, mobile bundles, public repositories, or analytics events.

03 / DISCOVERY

List available models

Call /v1/models using a valid account key. Treat the response as discovery only; confirm the chosen model's operation and request schema before use.

04 / TEST

Validate a small request

Use your confirmed endpoint and schema from a development server. Check status, response format, model identifier, and the matching usage record.

05 / OBSERVE

Handle errors and cost

Separate authentication failures from rate limits and upstream errors. Use timeouts, bounded retries where appropriate, and verify actual charges in usage logs.

06 / RELEASE

Review production needs

Check data handling, retention, region, compliance, and service limits with the current privacy policy, terms, and support.

IMPLEMENTATION NOTES

Use the live contract, not assumptions

Gateway compatibility does not guarantee that every provider-specific feature behaves identically. Confirm support for streaming, tools, image or audio input, and model-specific parameters before depending on them.

For account-specific endpoint, model, or billing questions, contact Copent AI with a sanitized error and request identifier.

Keep requests secure and measurable

Never paste your account password where an API key is expected. Redact credentials from logs, avoid unbounded retries on billable requests, and compare actual usage records with your expected charges.

  • Use separate development and production credentials where supported.
  • Set connection and response timeouts for outbound requests.
  • Do not assume model availability, price, or data residency from a model name.
  • Ask support for the current request contract if your console does not show it.