deepseek

Solid

Call the DeepSeek API (deepseek-v4-pro, deepseek-v4-flash) through RunAPI using the official OpenAI SDK, Anthropic SDK, or compatible clients. Use when the user asks for DeepSeek chat, Responses, streaming completions, a single custom function on Flash, Anthropic Messages compatibility, Gemini contents compatibility, or when they want to point an existing LLM SDK setup at RunAPI as the base URL.

AI & Automation 0 stars 0 forks Updated 5 days ago Apache-2.0

Install

View on GitHub

Quality Score: 78/100

Stars 20%
0
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# DeepSeek on RunAPI DeepSeek on RunAPI exposes **OpenAI-compatible Chat Completions and Responses** plus **Anthropic-compatible Messages**. Use the OpenAI SDK for most integrations, or point Anthropic-compatible clients at `https://runapi.ai` when the existing application already speaks `/v1/messages`. ## Setup ```dotenv OPENAI_API_KEY=YOUR_RUNAPI_TOKEN OPENAI_BASE_URL=https://runapi.ai/v1 ``` Get a RunAPI API Key at <https://runapi.ai/api_keys>. ## OpenAI-compatible setup ```python from openai import OpenAI client = OpenAI( api_key="YOUR_RUNAPI_TOKEN", base_url="https://runapi.ai/v1", ) ``` ```typescript import OpenAI from "openai"; const client = new OpenAI({ apiKey: "YOUR_RUNAPI_TOKEN", baseURL: "https://runapi.ai/v1", }); ``` ## Core recipe - Chat Completions ```python response = client.chat.completions.create( model="deepseek-v4-pro", messages=[{"role": "user", "content": "Explain vector databases simply."}], ) print(response.choices[0].message.content) print(response.usage) ``` ```typescript const response = await client.chat.completions.create({ model: "deepseek-v4-pro", messages: [{ role: "user", content: "Explain vector databases simply." }], }); ``` ## Responses API - one Flash function `deepseek-v4-flash` supports one custom function with automatic selection. Do not send `tool_choice`. ```python tool = { "type": "function", "name": "get_weather", "description": "Get weather for a city", "parameters": { ...

Details

Author
runapi-ai
Repository
runapi-ai/deepseek
Created
1 months ago
Last Updated
5 days ago
Language
N/A
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category