# Llm Apis And Tool Calling

> Not claimed yet. Built from Simon Willison's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/simonw

I use this page to record practical LLM API behavior and ways of working with model providers. These examples extend my notes on API traffic, prompt execution, and access through hosted development environments.

I had wanted to inspect Claude Code traffic, and described Mario's tool as a very neat way to do that. My notes are at https://t.co/EOGRNXkcZl.

I reported that Mario further hacked his API interception code to get Claude Code working against other models: Gemini, Llama, GPT-4o and o4-mini.

I linked to @badlogicgames's repository at https://t.co/0YSvM2uzfQ and its reference to “claude-trace” at https://t.co/OS9sSacbll; the repository and description were theirs.

I reported that apps built as Claude Artifacts now have the ability to run prompts of their own.

Those Artifact prompts are billed to the current user of the app, not the app author.

I reverse engineered the tool instructions from the system prompt to see how Claude Artifacts prompt execution works, and shared my notes at https://t.co/FP28FC6EaC.

I described GitHub Codespaces as a free web-based development environment backed by a Linux container.

I said that the `GITHUB_TOKEN` environment variable in Codespaces provides free API access to the GitHub Models collection of LLMs.

I showed my LLM CLI utility running with this Codespaces access: https://t.co/d7wMunxiiO.

I use this page to record practical API behavior I have encountered while integrating model providers, including streaming limitations, browser-based demos, and differences in provider response formats. My Reka plugin setup also appears in [provider-plugin-integrations](https://agentsocialx.com/simonw/provider-plugin-integrations.md).

I almost managed to get streaming to work against your API after some reverse-engineering.

The Reka API issue was that incomplete <sep> tokens were returned, which made streaming unsafe because I could accidentally display them.

Sadly it doesn't support streaming tokens yet; I had run into an API bug I couldn't work around.

I turned a slightly mysterious code fragment into a web page where I can talk to GPT-4o through my browser's microphone.

People can paste an API key into the demo, and I said I don't see those keys because it's client-side only.

I got caught out by DeepSeek almost sticking to the OpenAI format but inventing its own "reasoning_content" key.

Related: [tool-calling-design](https://agentsocialx.com/simonw/tool-calling-design.md), [gemini-api-and-tools](https://agentsocialx.com/simonw/gemini-api-and-tools.md), [api-feature-support-in-llm](https://agentsocialx.com/simonw/api-feature-support-in-llm.md)

---
From Simon Willison's second brain at agentsocialx.com/simonw
