Documentation

    Getting started

Models reference

GraphN routes each agent to a language model you choose in the agent editor. Built-in models are ready to use; you can also import an OpenAI-compatible endpoint (for example vLLM, Ollama with the OpenAI API, or a third-party API) and select it like any other model.

Built-in models

When you open the Models page (under Resources in the sidebar), you see a card grid of every model available in your workspace. When configuring an Agent node on the workflow canvas, you pick a model from a dropdown in the node panel. Both views list the same chat and vision models.

Chat and multimodal models

The following models are available in the model picker. Each links to its catalog page with the full editorial write-up, specifications, and runnable API examples. Your deployment may also include additional models discovered from the inference gateway; these appear alongside the built-in entries with names derived from their model identifiers.
Scroll horizontally to compare
ModelCallable nameTypeContextWhen to use
Qwen3 80B Instructqwen3-80bChat131KEveryday chat and agent work at near-flagship quality; the default chat model.
Qwen3 235B Instructqwen3-235bChat262KHighest-quality answers when accuracy matters more than cost.
Qwen3 Coderqwen3-coderChat131KCoding agents and IDE workflows at repo-scale context.
gpt-oss 120Bgpt-oss-120bChat131KReasoning with a cost dial: low, medium, or high effort per request.
Gemma 4 31B Instructgemma-4Chat131KA non-Qwen alternative with unusually wide language coverage (140+ languages).
Nemotron 3 Super 120Bnemotron-3-superChat262KA hybrid Mamba-2 model whose failure modes differ from the transformers here.
Qwen3.8 27B (image+video)qwen3.8-27bChat / Vision262KCoding, long-horizon agents, and image/video understanding in one dense model.
Qwen3.5 122B Vision (image+video)qwen3.5-122b-a10b-fp8Chat / Vision262KThe strongest visual reasoning here, for dense documents, diagrams, and video.
Qwen3.5 9B Vision (image+video)qwen3-vlVision262KThe most economical way to put images and video in front of a model.
Gemma 4 E4B (text+image+video+audio)gemma-4-e4bAudio chat66KSpeech and images in one conversational model, without a separate ASR step.
Model picker showing available chat and vision models as a card grid
Model picker showing available chat and vision models as a card grid

Speech, OCR, and retrieval models (not in the agent model picker)

The platform registers speech-to-text, text-to-speech, OCR, embedding, and reranker models for features such as voice input and output, document reading, and retrieval. They are not offered as the main LLM in the agent model selector.
Scroll horizontally to compare
ModelCallable nameTypeWhen to use
Qwen3 ASR 1.7B (52 languages)qwen3-asrSpeech-to-textSpeech to text for voice agents, streaming or batch, with word-level timestamps.
Qwen3 TTS (10 languages, 9 speakers)qwen3-ttsText-to-speechDefault speech synthesis: 9 voices, 10 languages, styled by instruction, voice cloning.
DeepSeek OCRdeepseek-ocrOCRTurns document images into markdown with layout preserved.
HunyuanOCRhunyuan-ocrOCRCompact OCR that also spots text, extracts fields, and translates.
BGE-M3 Embeddings (1024 dim)bge-m3EmbeddingSemantic search and retrieval across knowledge bases (default text embedding).
Qwen3-VL Embeddings (4096 dim, multimodal)qwen3-vl-embeddingEmbeddingMultimodal knowledge bases that index text and images together; selectable at KB creation time.
BGE Reranker v2bge-rerankerRerankerReranking search hits for better relevance ordering.
Qwen3-VL Reranker (multimodal)qwen3-vl-rerankerRerankerRelevance scoring across modalities: text against images and back.

Decision guide

Scroll horizontally to compare
Your goalRecommended model
General agents, tools, structured JSONQwen3 80B Instruct
Hardest tasks, long inputs, or long-horizon agentsQwen3 235B Instruct
Code-heavy agents and IDE-style workflowsQwen3 Coder
Adjustable reasoning effort per requestgpt-oss 120B
Broad multilingual coverageGemma 4 31B Instruct
Multimodal inputs (images, video + text)Qwen3.5 9B Vision or Qwen3.8 27B
Voice input without a separate transcription stepGemma 4 E4B
Fine-tuned or external API you controlImport an endpoint (next section) and pick that model

Custom model import

Import an OpenAI-compatible HTTP API whose chat path is /v1/chat/completions (same request shape as OpenAI). Typical sources include vLLM, Ollama (OpenAI compatibility mode), OpenAI, Google Gemini via OpenAI compatibility, and OpenRouter.

Import from the UI

  1. In the sidebar, under Resources, click Models.
  2. Click Import Model (top-right corner).
  3. The import wizard has two tabs:
API Endpoint (connect to a running inference server):
  1. Choose a provider:
    • OpenAI, Google (Gemini), or OpenRouter — preset base URLs; you attach a secret that stores your API key, then use Fetch Available Models to list models from /v1/models (filtered to chat-relevant entries).
    • Custom Provider — for any other OpenAI-compatible base URL (for example http://your-host:8000/v1 for a local vLLM server). Enter the endpoint URL, model id (exactly as the server expects in API calls), and optionally an API key secret if the server requires authentication.
  2. (Optional) Click Configure to set type (chat, vision, or embedding), capabilities (for example tool calling, vision, streaming, json mode), context length, and description.
  3. Click Import. You are taken to the new model’s detail page.
HuggingFace Weights (deploy a model from HuggingFace):
  1. Enter the full HuggingFace model ID (for example meta-llama/Llama-3-8B-Instruct).
  2. Optionally set a display name (auto-generated from the model ID if left blank).
  3. If the model is gated or private, click Attach secret to provide your HuggingFace token.
  4. Click Validate & Continue to proceed through the optimization and scaling steps.
Import Model wizard showing API Endpoint and HuggingFace Weights tabs
Import Model wizard showing API Endpoint and HuggingFace Weights tabs

Test the connection before using an agent

After import, open the imported model’s page. In the Test Model section, enter a short prompt and run the test. The app streams a reply so you can confirm the endpoint, credentials, and model id work together.

Verify connectivity with the API (optional)

You can send a single chat completion through GraphN to validate an endpoint before or after saving an imported model, using the same workspace and auth as the app.
Replace the placeholders with your workspace id, bearer token, base URL (must include /v1), and upstream model id:
bash
curl -X POST "https://cp.graphn.ai/v1/${WORKSPACE_ID}/imported-models/test-connection" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer ${TOKEN}" \
  -d '{
    "endpoint": "https://your-endpoint.example.com/v1",
    "model_id": "your-model-name",
    "api_key_secret_id": null,
    "message": "Reply with one short sentence."
  }'
Omit api_key_secret_id or set it to null when the server does not use a bearer token. When you store a key in Secrets, pass that secret’s id so the test can authenticate.
A successful response includes a response field with the generated text, the model name returned by the server, and usage token counts when the upstream returns them.

Register an imported model with the API

To create the imported model record programmatically (equivalent to finishing the import wizard):
bash
curl -X POST "https://cp.graphn.ai/v1/${WORKSPACE_ID}/imported-models" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer ${TOKEN}" \
  -d '{
    "name": "my-endpoint-model",
    "display_name": "My vLLM Model",
    "endpoint": "https://your-endpoint.example.com/v1",
    "model_id": "your-model-name",
    "api_key_secret_id": null,
    "type": "chat",
    "capabilities": ["tool_calling"],
    "context_length": 128000,
    "description": "Imported from our vLLM cluster."
  }'
Use a unique name (URL-friendly identifier) within the workspace; agents reference this value as the model setting. display_name is what people see in lists and selectors.

List models from a provider endpoint (API)

To mirror Fetch Available Models in the UI (OpenAI-style GET /v1/models on the same base URL as chat):
bash
curl -X POST "https://cp.graphn.ai/v1/${WORKSPACE_ID}/imported-models/discover-models" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer ${TOKEN}" \
  -d '{
    "endpoint": "https://api.openai.com/v1",
    "api_key_secret_id": "YOUR_SECRET_ID"
  }'
endpoint and api_key_secret_id are required; the secret must hold the provider API key.

Next steps

  • Function SDK Reference — use models in custom Python functions with chat.complete(model="...") and vision.analyze(model="...")
  • Concepts — how models relate to agents and workflows
  • API Reference — full endpoint reference including imported model CRUD
Previous

Function SDK

Next

Document analysis