API operations

Configure the ModelPort base URL

Use the correct API or MCP endpoint for each client.

Match the client’s URL format

OpenAI-compatible SDKs expect a base URL ending in /v1. The Anthropic SDK adds /v1/messages to the domain. MCP clients use the Streamable HTTP /mcp endpoint.

Debug with a read-only request

Check /v1/models or /v1/balance from the application host. Verify the scheme and path before testing authentication, the model ID, and a full request.

Example request

curl "https://api.apimodel.store/v1/models" \
  -H "Authorization: Bearer $MODELPORT_API_KEY"

Related guides and tools

Sources