Opik · Example Payload

Opik Span Example

llm-callopenai

Opik Span Example is an example object payload from Opik, with 21 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

idproject_nameproject_idtrace_idparent_span_idnametypestart_timeend_timeinputoutputmetadatamodelprovidertagsusagecreated_atlast_updated_atcreated_byfeedback_scorestotal_estimated_cost

Example Payload

Raw ↑
{
  "id": "e5f6a7b8-c9d0-1234-efab-345678901234",
  "project_name": "my-rag-chatbot",
  "project_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
  "trace_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "parent_span_id": null,
  "name": "openai_chat_completion",
  "type": "llm",
  "start_time": "2026-06-13T10:00:01.100Z",
  "end_time": "2026-06-13T10:00:02.450Z",
  "input": {
    "messages": [
      {
        "role": "system",
        "content": "You are a helpful assistant specializing in LLM observability tools."
      },
      {
        "role": "user",
        "content": "What are the main features of Opik?"
      }
    ]
  },
  "output": {
    "message": {
      "role": "assistant",
      "content": "Opik is an open-source LLM evaluation and tracing platform..."
    },
    "finish_reason": "stop"
  },
  "metadata": {
    "temperature": 0.7,
    "max_tokens": 500
  },
  "model": "gpt-4o",
  "provider": "openai",
  "tags": ["llm-call", "openai"],
  "usage": {
    "prompt_tokens": 245,
    "completion_tokens": 87,
    "total_tokens": 332
  },
  "created_at": "2026-06-13T10:00:02.500Z",
  "last_updated_at": "2026-06-13T10:00:02.500Z",
  "created_by": "sdk",
  "feedback_scores": [
    {
      "name": "hallucination",
      "value": 0.05,
      "reason": "Response is grounded in retrieved context.",
      "source": "online_scoring"
    }
  ],
  "total_estimated_cost": 0.000664
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/opik-span-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.