LLM integration
LLM integration
Connect through the OpenAI, Anthropic, or Gemini native protocol.
Choose the protocol your application uses. Each protocol has its own request shape, response format, streaming events, SDK configuration, and API reference.
| Protocol | Base URL | Start here |
|---|---|---|
| OpenAI | https://api.musespark.ai/proxy/openai/v1 | OpenAI integration |
| Anthropic | https://api.musespark.ai/proxy/anthropic | Anthropic integration |
| Gemini | https://api.musespark.ai/proxy/gemini/v1beta | Gemini integration |
Shared setup
Create a key with product llm_compat. Calling models requires llm:invoke; listing models requires llm:model:list. See authentication.
Query the chosen protocol's model catalog for an authorized identifier. Protocol support and optional features depend on the selected model.
Native responses
Successful calls return protocol-native JSON, streaming events, or media bytes. They do not use the task API's code, msg, and data wrapper.
Read the capability boundaries before migrating an application that uses additional upstream endpoints.