AICredits logo
Integrations

Langflow

Connect Langflow visual AI flows to AICredits with an OpenAI-compatible base URL and API key.

Use this page with an AI assistant

Opens a new chat with this docs URL and the correct AICredits base URLs.

Langflow is a visual builder for AI agents and workflows. Use AICredits as the OpenAI-compatible chat model inside Langflow components.

OpenAI Component

In a Langflow flow, add an OpenAI chat model component and configure:

FieldValue
API keysk-your-aicredits-key
OpenAI API base / base URLhttps://api.aicredits.in/v1
Model namePick from Models

Common model choices:

openai/gpt-4o-mini
anthropic/claude-sonnet-4.5
google/gemini-2.5-flash

If your Langflow version does not show a base URL field in the component, set the corresponding OpenAI base URL environment variable in the container and restart Langflow.

.env
OPENAI_API_KEY=sk-your-aicredits-key
OPENAI_BASE_URL=https://api.aicredits.in/v1

Use the UI base URL field when available. Environment variables are best for single-provider deployments where every OpenAI component should use AICredits.

Example Flow

Create a minimal chat flow:

Chat Input → Prompt → OpenAI Chat Model → Chat Output

Set the OpenAI Chat Model component to an AICredits model ID. Run the flow in the playground before exposing it as an API endpoint.

Hostinger Deployment Notes

For shared Hostinger deployments, create a dedicated AICredits key with a monthly cap. Langflow makes it easy to experiment with expensive models in loops, so use budget caps before inviting teammates.

Verify

Ask the Langflow playground:

Reply with "AICredits via Langflow" and nothing else.

Then confirm the call in Dashboard → Usage.

Troubleshooting

Uses OpenAI instead of AICredits — Check that the base URL is set to https://api.aicredits.in/v1.

401 Unauthorized — Replace the key with a current AICredits API key.

Model not found — Use an exact model ID from Models.

On this page