Skip to main content
Connect to https://api.trycarhub.com/mcp with an organization API key. For Claude Code:

Call an inference tool

Each inference endpoint has its own MCP tool, named in its API reference page. Calling it creates a job with the same inputs, results, permissions, and credit pricing as REST.
  • For media, supply an ordered inputs array. Each object contains either an uploaded ref or a reachable url. Remote URLs require upload permission.
  • Put endpoint options or structured input data in params.
  • Read the returned job. If it is still pending, call carhub_get_job until it reaches a terminal status.
For example, call the photo customization tool with:
Use exactly one source per input. Optional client_id values must be unique within the request. Include role for required views or document sides. Reuse idempotency_key and the same arguments for a transport retry. Use test mode while building your integration. The client discovers only tools available to its key and connection.

Supporting tools

For local files, use carhub_create_upload, transfer the file using the returned upload instructions, then submit its reference. See uploads.
Check the key’s endpoint permissions, the endpoint’s availability in that environment, and any required beta access. OAuth connections must also permit inference execution.Inspect availability with carhub_list_endpoints and refresh tool discovery after changing access. Job retrieval and upload tools also require their own permissions.