> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenRouter Integration

Leverage OpenRouter's unified API to chain AI-driven actions into your blockchain workflows, enabling seamless automation across multiple LLMs. Integrat...

![OpenRouter logo](https://ai-icon.b3.fun/logo/openrouter) Integration available

Leverage OpenRouter's unified API to chain AI-driven actions into your blockchain workflows, enabling seamless automation across multiple LLMs. Integrate GPT-4, Claude, Llama and more to power dynamic prompts, data transforms, and smart contract interactions without leaving your crypto stack.


**[Public page](https://b3os.org/integrations/app/openrouter)**

Open the user-facing integration overview for examples, templates, and sharing.
  **[Action reference](/actions/reference)**

Schema-level references for executable actions and test payloads.
  **[Trigger reference](/actions/trigger-reference)**

Event and schedule triggers that can start B3OS workflows.

## Build With OpenRouter

Use OpenRouter when a workflow needs to call AI Market Sentiment, AI Prompt, List AI Models or related OpenRouter operations from a typed B3OS action. Start in the visual editor to connect an account, then use the references below for payload shape, required fields, and API testing.

## Available Actions

| Action | ID | Connector | Required fields |
| --- | --- | --- | --- |
| ![AI Market Sentiment logo](https://ai-icon.b3.fun/logo/ai) [AI Market Sentiment](/actions/reference/generated/ai-market-sentiment) | `ai-market-sentiment` | `-` | `text`, `subject` |
| ![AI Prompt logo](https://ai-icon.b3.fun/logo/ai) [AI Prompt](/actions/reference/generated/ai-llm-chat) | `ai-llm-chat` | `-` | `prompt` |
| ![List AI Models logo](https://ai-icon.b3.fun/logo/ai) [List AI Models](/actions/reference/generated/openrouter-list-models) | `openrouter-list-models` | `-` | - |


## Available Triggers

No trigger references are published for this integration yet.


## Common Use Cases

**Dynamic NFT Metadata Generation**

Generate or update NFT attributes on-the-fly using AI prompts, enabling personalized assets based on user input or on-chain events.
  **Automated Compliance Reporting**

Transform raw transaction data into regulator-friendly summaries with AI, then post the results to a governance channel.
  **Intelligent Smart Contract Debugging**

Feed contract code snippets to an LLM via OpenRouter to receive suggestions for optimization, security checks, or gas-saving refactors.
  **Personalized DeFi Strategy Recommendations**

Use AI to analyze portfolio data and market trends, then trigger automated rebalancing or alert actions based on the model's output.

## Connector Notes

- Create the connector from a trusted B3OS organization before publishing workflows that call external accounts.
- Keep OAuth tokens, API keys, bot tokens, channel IDs, and account IDs in connector settings or workflow props, not in reusable public template text.
- Test with the visual editor or `POST /v1/actions/{type}/test` before routing production traffic.

## Related Templates

No public templates are linked to this integration yet.

## FAQ

**What triggers can I use with the OpenRouter integration?**

The integration currently supports actions only; triggers are not yet available.
  **Which AI models are accessible via OpenRouter?**

OpenRouter provides access to a wide range of models including GPT-4, Claude, Llama, and many community-hosted variants.
  **How does the AI Prompt action work?**

You supply a prompt and optional context, and the action returns the model's response, which can be used to generate text, classify data, or drive downstream blockchain logic.
  **Is my data safe when processing through OpenRouter?**

OpenRouter handles data securely, but you should avoid sending sensitive private keys or personally identifiable information through public model endpoints.
  **Can I chain multiple AI actions in a single workflow?**

Yes—each AI Prompt or OpenRouter Transform can feed into subsequent steps, allowing complex multi-stage automations within B3OS.