Salta al contenuto principale
Tutti i client
Rust IDE · Native Agent Panel1M Context · ZDR

Zed

Editor Rust accelerato da GPU con pannello Agent nativo compatibile con OpenAI.

URL Base
https://api.bf16.ai/v1
Protocollo
openai-completions

Per chi è pensato
Utenti Zed che desiderano modelli 1M pay-as-you-go senza plugin né abbonamenti.

Architettura e Integrazione con bf16.ai

Zed Rust IDE Agent Panel connected to https://api.bf16.ai/v1 with 1M context and streaming inline edits
Configure bf16.ai under language_models.openai_compatible in ~/.config/zed/settings.json for instant model switching.

Zed’s native Agent Panel supports custom OpenAI-compatible providers directly in settings.json with zero plugins required.

Pairing Zed with DeepSeek V4.1 Flash Uncensored Fast ($0.28/$1.12) gives sub-second inline code completions, while Kimi K3.1 Pro Uncensored ($1.95/$6.90) handles complex multi-file architecture threads across a full 1M token window.

I comandi mostrano $BF16_API_KEY. Accedi per inserire automaticamente la tua chiave reale.

SETUP IN 1 COMANDO

Verify Your Key & Print Zed Provider JSON

Tests your API key and outputs the exact openai_compatible block to paste into ~/.config/zed/settings.json.

export BF16_API_KEY="sk-bf16-v1-..."
curl https://api.bf16.ai/v1/models -H "Authorization: Bearer $BF16_API_KEY"
  1. 1

    Configura la tua chiave API bf16.ai

    Open Zed settings (⌘,) and add the openai_compatible block below.

    ~/.config/zed/settings.json
    {
      "language_models": {
        "openai_compatible": {
          "bf16": {
            "api_url": "https://api.bf16.ai/v1",
            "available_models": [
              {
                "name": "deepseek/deepseek-v4.1-flash-uncensored-fast",
                "display_name": "DeepSeek V4.1 Flash Fast (bf16)",
                "max_tokens": 1048576,
                "max_output_tokens": 130000,
                "capabilities": { "tools": true, "images": true, "thinking": true }
              },
              {
                "name": "moonshotai/kimi-k3.1-pro-uncensored",
                "display_name": "Kimi K3.1 Pro 2.8T (bf16)",
                "max_tokens": 1048576,
                "max_output_tokens": 131072,
                "capabilities": { "tools": true, "images": true, "thinking": true }
              }
            ]
          }
        }
      }
    }
  2. 2

    Collega l’endpoint bf16.ai e i modelli da 1M

    Inserisci la Base URL e la chiave API per attivare subito i modelli senza censura da 1M di contesto con zero data retention (ZDR).

Zed — ~/.config/zed/settings.json
ISPETTORE CONFIGURAZIONE
Settings (⌘,) → language_models.openai_compatible.bf16

Riferimento Campo per Campo

api_url
https://api.bf16.ai/v1
API Key Env
BF16_API_KEY (or Zed keychain)
max_tokens
1048576
available_models
deepseek/deepseek-v4.1-flash-uncensored-fast, moonshotai/kimi-k3.1-pro-uncensored
Zed stores custom provider API keys securely in your OS keychain once pasted in the Agent Panel configuration modal.

Modelli Consigliati per Ruolo

Assegna la progettazione ai modelli Flagship e i subtask rapidi o screenshot ai modelli Flash.

RuoloModel IDMotivazioneUSD / 1M Token
Interactive Inline Edits & Agent Turnsdeepseek/deepseek-v4.1-flash-uncensored-fastMatches Zed’s low-latency editing feel with 1M context and $0.055 cached reads.$0.28 in / $0.055 cached / $1.12 out
Heavy Refactoring & Design Reviewsmoonshotai/kimi-k3.1-pro-uncensored2.8T MoE reasoning with native vision for UI screenshot debugging inside Zed.$1.95 in / $0.28 cached / $6.90 out

Come capire se ha funzionato

  • Invia una richiesta di test e verifica la chiamata in tempo reale nei log di bf16.ai.
  • curl https://api.bf16.ai/v1/models -H "Authorization: Bearer $BF16_API_KEY"

Guardrail di Produzione e Limiti di Spesa

  • Keep max_tokens set to 1048576 so Zed never truncates large file trees prematurely.

Errori comuni

Sintomo
Il test di connessione restituisce HTTP 404 o errore di autenticazione.
Causa
Il suffisso /v1 nella Base URL non corrisponde al formato richiesto dal client.
Soluzione
Copia esattamente la Base URL indicata in questa guida.