base_url at their endpoint — so the OpenInference OpenAI instrumentor traces them the same way it traces OpenAI itself. One setup covers all of them.
Setup
Point the exporter at AgentMark and instrument OpenAI
Use your AgentMark API key and app id from project settings.
Point the OpenAI client at your provider
Set
base_url to the provider’s endpoint and use the client as usual. Each call arrives in AgentMark as a span. See Traces and logs.Common endpoints
| Provider | base_url |
|---|---|
| OpenRouter | https://openrouter.ai/api/v1 |
| Together AI | https://api.together.xyz/v1 |
| Fireworks AI | https://api.fireworks.ai/inference/v1 |
| DeepSeek | https://api.deepseek.com |
| xAI (Grok) | https://api.x.ai/v1 |
| Cerebras | https://api.cerebras.ai/v1 |
| Ollama (local) | http://localhost:11434/v1 |
What AgentMark captures
These calls produce the same OpenInference spans as a direct OpenAI call — model, token usage, input and output messages, tool calls, and span kind are mapped onto AgentMark’s normalized trace fields, and token counts feed cost tracking. See OpenInference for the full attribute mapping.Next steps
OpenAI
The direct OpenAI provider page
Traces and logs
Explore traces once they arrive
Have questions?
Reach out any time:
- Email us at hello@agentmark.co for support
- Schedule an Enterprise Demo to learn about our business solutions