NeuralSpace API

语言: Русский · English · العربية · 简体中文 · ko · ja · Deutsch · Français · Español · Italiano · Svenska · עברית · ייִדיש · हिन्दी · Nederlands · Português · Română · Polski · Čeština · Ελληνικά · Slovenčina · Magyar · Bahasa Indonesia · Bahasa Melayu · Dansk · Suomi · Norsk · Hrvatski · sr

本页面为开发者和AI智能体提供的文档,无需身份验证即可访问,也支持自动化读取。

基础URL:https://neuralspace.pro。使用账户余额中的token付费,无需订阅或国外银行卡。文本与对话接口兼容Anthropic和OpenAI的SDK——只需更改base_url和密钥即可。

身份验证

请在账户中创建API密钥:https://neuralspace.pro/api-keys。密钥形如nsk-...,仅显示一次。请在请求头中传递:

x-api-key: nsk-your_key

也支持使用Authorization: Bearer nsk-...请求头(适用于兼容OpenAI的客户端)。

MCP服务器——将NeuralSpace接入你的AI智能体

本API的所有能力(图像/视频/音乐生成、与LLM对话、语音合成与识别、余额查询、价格查询)也以MCP服务器(Model Context Protocol)形式提供——你可以将其接入Claude Code、Claude Desktop、Cursor及其他任意MCP客户端,让你的AI智能体以你的账户身份自主生成内容。

接入地址(Streamable HTTP,无会话):https://neuralspace.pro/mcp。身份验证方式与直接调用API相同,在Authorization: Bearer或x-api-key请求头中传入同样的nsk-...密钥。

# Claude Code
claude mcp add --transport http neuralspace https://neuralspace.pro/mcp \
  --header "Authorization: Bearer nsk-your_key"
// Cursor / Claude Desktop and other streamable-http clients
{
  "mcpServers": {
    "neuralspace": {
      "type": "http",
      "url": "https://neuralspace.pro/mcp",
      "headers": { "Authorization": "Bearer nsk-your_key" }
    }
  }
}
// Clients that only speak stdio — via the mcp-remote bridge
{
  "mcpServers": {
    "neuralspace": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://neuralspace.pro/mcp",
               "--header", "Authorization: Bearer nsk-your_key"]
    }
  }
}

MCP服务器提供的工具:list_models(模型列表及实时价格)、get_balance(余额)、chat(LLM对话)、generate_image、generate_video + check_video、generate_music + check_music、text_to_speech、transcribe_audio。计费与退款规则与直接调用API完全一致;成功生成的内容会以卡片形式出现在你的账户中。若客户端的MCP工具超时时间较短,建议为同步图像生成(最长约2分钟)适当延长该超时时间。

GET /v1/balance 与 GET /v1/models——服务接口

GET /v1/balance——查询密钥所属账户的当前token余额:{ "balance": N, "currency": "tokens" }。GET /v1/models——以机器可读格式返回所有模型及其实时价格(相当于本页面的JSON版本)。两者均需提供密钥。

POST /v1/messages——文本模型(Anthropic格式)

兼容Anthropic Messages API。可用模型:claude-haiku-4-5, claude-haiku-5-5, claude-sonnet-5, claude-sonnet-5-5, claude-opus-5, claude-opus-5-5, claude-fable-5, claude-fable-5-1, claude-fable-5-2。

请求体字段:model、messages({role, content}对象数组,role为user/assistant)、max_tokens(1—32000;Claude Fable 5.2:最高 128000)、可选的system。

curl https://neuralspace.pro/v1/messages \
  -H "x-api-key: nsk-your_key" \
  -H "content-type: application/json" \
  -d '{
    "model": "claude-opus-5",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

通过Anthropic SDK(Python)调用:Anthropic(base_url="https://neuralspace.pro", api_key="nsk-...")。

POST /v1/chat/completions——对话模型(OpenAI格式)

兼容OpenAI Chat Completions API。可用模型:gpt-5-6, gpt-5-6-balanced, gpt-5-6-fast, gpt-6-astra, gpt-6-sol, gpt-6-luna, gpt-6-1-sol, gpt-6-2-sol, gpt-6-2-sol-pro, gpt-6-2-astra, gpt-6-2-astra-pro, gpt-6-1-sol-pro, gpt-6-1-terra, gpt-6-1-terra-pro, gpt-5-mini, gpt-5-4-mini, grok-4-3, grok-4-5, grok-4-6, grok-4-7, gemini-3-8-flash, gemini-4-argon, gemini-4-carbon, gemini-4-hydrogen, gemini-4-neon, deepseek-v4.1-flash, deepseek-v4.1-flash-1017, deepseek-v4-pro, glm-5.3-flash, glm-5.3, glm-5.3-flashx-legal, kimi-k2.6, kimi-k3, kimi-k3.1-pro。

请求体字段:model、messages(role为system/user/assistant)、max_tokens或max_completion_tokens、可选的reasoning_effort(适用于GPT-5.6、GPT-6 Astra和Grok 4.5)。

curl https://neuralspace.pro/v1/chat/completions \
  -H "Authorization: Bearer nsk-your_key" \
  -H "content-type: application/json" \
  -d '{
    "model": "gpt-5-6-balanced",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

通过OpenAI SDK调用:OpenAI(base_url="https://neuralspace.pro/v1", api_key="nsk-...")。

Realtime voice

Grok Voice 3 is available over WebSocket for native speech-to-speech. Sessions are limited to 120 minutes. Billing uses the actual duration of input and output audio; the exact amount is in the price table above.

const ws = new WebSocket(
  "wss://neuralspace.pro/v1/realtime?model=grok-voice-3.0&lang=zh",
  { headers: { Authorization: "Bearer nsk-your_key" } }
);

POST /v1/images/generations——图像生成

同步接口:响应中直接返回可用的图像URL。仅在生成成功时扣除token。可用模型:nano-banana, nano-banana-pro, nano-banana-2, nano-banana-2-lite, nano-banana-2-1, flux-2-pro, gpt-image-15, gpt-image-2, gpt-image-2-pro, gpt-image-25, gpt-image-26, seedream-45, seedream-5-lite, seedream-5-flash, seedream-5-pro, grok-image, grok-imagine-image-2, minimax-h3-image-edit, z-image, ideogram, midjourney。

请求体字段:model、prompt(最多5000字符)、可选的aspect_ratio(gpt-image-2-pro:1:1/3:2/2:3;gpt-image-25:auto/1:1/3:2/2:3/16:9/9:16/4:3/3:4/21:9,27:16/16:27/9:8/8:9仅支持1K)、resolution(1K/2K/4K)、variant(flare/sunburst——gpt-image-25)、background(transparent/opaque/auto——gpt-image-25)、output_format(jpeg/png——nano-banana-pro;jpeg/png/webp——gpt-image-2-pro)、quality(medium/high——gpt-image-15;low/medium/high——gpt-image-2-pro)、mode(relaxed/fast/turbo——midjourney)、image_urls(数组——开启编辑/图生图模式)。

minimax-h3-image-edit: without image_urls creates an image from text; with 1–16 images (up to 20 MB each) edits them. Defaults: 2K and auto. Supports 1K/2K/4K, width and height together instead of resolution and aspect ratio, png/jpeg output_format, expand_prompt and seed. In edit mode, every input image adds to the output price.

curl https://neuralspace.pro/v1/images/generations \
  -H "x-api-key: nsk-your_key" \
  -H "content-type: application/json" \
  -d '{
    "model": "nano-banana-pro",
    "prompt": "太空中的一只猫,数字插画",
    "resolution": "2K"
  }'

响应:{ "data": [{ "url": "https://..." }], "usage": { "tokens": N } }。

输入图片:链接或Base64

image_urls 的每个元素可以是链接或Base64:形如 data:image/png;base64,... 的data URL,或无前缀的纯base64。图片会被解码、校验并保存到服务器,模型之后像收到普通链接一样使用它——响应和扣费与直接传链接完全一致。格式:PNG/JPEG/WebP;单张图片不超过10 MB,每次请求媒体总量不超过72 MB。格式无效、声明的类型与文件内容不符或超出限制——返回400错误,不扣除token。

# 2. image_urls 用链接或 base64(data:image/png;base64,...)
curl https://neuralspace.pro/v1/images/generations \
  -H "x-api-key: nsk-your_key" \
  -H "content-type: application/json" \
  -d '{
    "model": "nano-banana-2-1",
    "prompt": "make the cat wear a space helmet",
    "image_urls": ["data:image/png;base64,iVBORw0KGgoAAAANSUhEUg..."]
  }'

POST /v1/videos/generations——视频生成(异步)

视频生成通常需要数分钟,因此采用异步方式:POST创建任务并扣除token,随后轮询GET /v1/videos/generations/<id>获取结果。若出错或超时,token将被退还。可用模型:seedance-2.0, seedance-2.0-mini, seedance-2.5, seedance-2.5-draft, seedance-2.5-flash, magi-2, ltx-2.5-fast, ltx-2.5-pro, veo-3.1, veo-3.1-fast, veo-3.1-lite, sora-2, sora-2-pro, kling-o3, kling-3.0, kling-3-0-turbo, kling-4-0, kling-4-0-flash, grok-1.5, grok-imagine, wan-2.6, gemini-omni-flash-1-1, gemini-omni-flash-1-2, gemini-omni-flash-1-2-extend, gemini-omni-1, vidu-q4。

请求体字段:model、prompt、可选的duration、resolution、mode(kling/grok)、quality(sora-2-pro)、audio(kling)、aspect_ratio、image_urls、multi_shots(分镜脚本——kling-3.0和wan-2.6)。

对于kling-3.0,还可使用以下字段:

Seedance 2.0(seedance-2.0):时长 4–15 秒,分辨率 480p/720p/1080p/4K。使用 first_frame_url 和可选的 last_frame_url,或最多 9 个 reference_image_urls、3 个 reference_video_urls、3 个 reference_audio_urls;帧与参考素材不可混用。可设置 generate_audio、return_last_frame 和 web_search;视频参考的时长计入费用。

Seedance 2.0 Mini (seedance-2.0-mini): the same input modes, 4–15 seconds and 480p/720p. return_last_frame is unavailable.

Seedance 2.5 Draft:使用 seedance-2.5 和 "draft": true 创建 480p 草稿。完成后 7 天内,将其 id 作为 draft_task_id 传给 seedance-2.5-draft,并选择 720p、1080p 或 4k 的 resolution。两个步骤分别收费;dry_run 可查询提升画质的价格。

kling-4-0:duration 为 3–30 的整数,resolution 为 720p/1080p,aspect_ratio 为 auto/16:9/9:16/1:1/21:9。reference 模式支持最多 10 个 image_urls、5 个 video_urls、7 个 elements 和 3 个 voices,图片和视频参考总数不超过 15 个。keyframe 模式支持 first_frame_url、last_frame_url 和最多 8 个 keyframe_urls;两种模式不能混用。 另外还提供快速版 kling-4-0-flash:duration 为 3–20 的整数,resolution 仅有 720p,不支持 voices 和 keep_original_sound,keyframe 模式仅接受单个 first_frame_url。

Seedance 2.5 Flash:duration: -1 由模型选择4至30秒。先预留30秒费用,视频完成后退还未使用秒数的差额。

gemini-omni-flash-1-2: 3–15 seconds, 360p/720p/1080p/4k, aspect ratio 16:9/9:16/auto, seed 10000–99999. Up to 6 image_urls and 2 character_ids; first_frame_url cannot be combined with references or characters. last_frame_url requires a first frame and duration at most 10 seconds. KIE bills 4/9/10/22 credits per second by resolution. Extension: model: "gemini-omni-flash-1-2-extend", source_task_id of your completed 360p/720p clip of at most 15 seconds, duration 3–10 new seconds, and up to 3 image_urls.

# 1. 创建任务
curl https://neuralspace.pro/v1/videos/generations \
  -H "x-api-key: nsk-your_key" \
  -H "content-type: application/json" \
  -d '{"model": "seedance-2.0", "prompt": "海洋上的日落", "duration": 5}'
# response: { "id": "task_...", "status": "pending", "poll_url": "..." }

# 2. 轮询状态,直到status不再是completed/failed
curl https://neuralspace.pro/v1/videos/generations/task_... \
  -H "x-api-key: nsk-your_key"
# when completed: { "status": "completed", "data": [{ "url": "https://..." }] }

输入视频:链接或Base64

输入视频同样可以用Base64传递:video_urls/reference_video_urls 的元素、video_list[].url、elements[].video_url——可以是链接,也可以是data URL data:video/mp4;base64,... 或纯base64。格式:MP4/WebM/MOV;单个视频不超过64 MB(计入每请求72 MB的媒体总量限制)。校验相同:文件签名、声明类型与内容不符——返回400错误,不扣除token。

# 参考视频用链接或 base64(data:video/mp4;base64,...)
curl https://neuralspace.pro/v1/videos/generations \
  -H "x-api-key: nsk-your_key" \
  -H "content-type: application/json" \
  -d '{"model": "seedance-2.5", "prompt": "continue this clip", "duration": 5,
       "video_urls": ["data:video/mp4;base64,AAAAIGZ0eXBpc29t..."]}'

POST /v1/music/generations——音乐生成(异步)

音乐生成(Suno)通常需要数分钟,因此采用异步方式:POST创建任务并扣除token,随后轮询GET /v1/music/generations/<id>获取结果。若出错或超时,token将被退还。一次生成通常会返回2首曲目。可用模型:V6, V6_WILD, V6_MINI, V5, V4_5PLUS, V4_5, V4。

请求体字段:model、prompt(音乐描述;在custom_mode下若包含人声,则为歌词内容)、可选的instrumental(纯伴奏,无人声)、custom_mode(需配合style和title使用)、style、title、negative_tags、vocal_gender(m/f)、duration——曲目时长(秒),范围10到360(V6、V6_MINI和V6_WILD模型在custom_mode: true时可用;未指定时由模型自行决定时长)。

分离自己的音轨:向 POST /v1/music/separations 传入 task_id、audio_id 和 type(separate_vocal 或 split_stem)。在 GET /v1/music/separations/<id> 获取状态和分轨 ID。使用 POST /v1/music/wav-conversions 将歌曲或分轨转为 WAV;分轨需传入 stem: true。通过 GET /v1/music/wav-conversions/<id> 获取结果。价格见 /v1/models;dry_run: true 只报价,不启动任务。

# 1. 创建任务
curl https://neuralspace.pro/v1/music/generations \
  -H "x-api-key: nsk-your_key" \
  -H "content-type: application/json" \
  -d '{"model": "V5", "prompt": "关于夜色都市的动感合成器浪潮音乐"}'
# response: { "id": "task_...", "status": "pending", "poll_url": "..." }

# 2. 轮询状态,直到status不再是completed/failed
curl https://neuralspace.pro/v1/music/generations/task_... \
  -H "x-api-key: nsk-your_key"
# when completed: { "status": "completed", "data": [{ "url": "https://...", "title": "...", "duration": 123 }] }

POST /v1/audio/speech——语音合成(OpenAI格式)

兼容OpenAI Audio Speech API。同步接口:响应中直接返回可用的音频文件URL。仅在生成成功时按字符数扣除token。可用模型:tts-1, tts-1-hd。

请求体字段:model、input(文本,最多4096字符)、可选的voice(alloy/echo/fable/onyx/nova/shimmer)、response_format(mp3/opus/aac/flac/wav)。

curl https://neuralspace.pro/v1/audio/speech \
  -H "Authorization: Bearer nsk-your_key" \
  -H "content-type: application/json" \
  -d '{
    "model": "tts-1",
    "voice": "alloy",
    "input": "你好!这是NeuralSpace语音合成。"
  }'

POST /v1/audio/transcriptions——音频转录(OpenAI格式)

兼容OpenAI Audio Transcriptions API(Whisper)。文件以multipart/form-data格式发送。同步接口:响应中直接返回识别出的文本。仅在识别成功时按音频时长(根据文件大小估算)扣除token。可用模型:whisper-large-v3, whisper-1。文件大小限制——25 MB。

表单字段:file(音频格式:mp3/mp4/mpeg/mpga/m4a/wav/webm/ogg/flac)、model(whisper-large-v3;旧版whisper-1仍可使用,实际按large-v3运行)、可选的language(ISO语言代码,如ru/en)、prompt(上下文提示)。

curl https://neuralspace.pro/v1/audio/transcriptions \
  -H "Authorization: Bearer nsk-your_key" \
  -F model="whisper-large-v3" \
  -F file="@audio.mp3"
# response: { "text": "...", "model": "whisper-large-v3", "usage": { "tokens": 0.2 } }

响应:{ "text": "识别出的文本", "model": "whisper-large-v3", "usage": { "tokens": 0.2 } }。

视频头像

会说话的视频头像及相关模式。目录:GET /v1/avatars(avatar_id)、GET /v1/avatars/voices?language=en(voice_id)、GET /v1/avatars/languages(翻译语言)、/v1/avatars/styles、/v1/avatars/templates、/v1/avatars/assets、/v1/avatars/brand-kits。生成为异步:使用 type 字段调用 POST /v1/avatars/generations,然后轮询 GET /v1/avatars/generations/<id>。代币在创建时扣除,失败时退还。

curl https://neuralspace.pro/v1/avatars/voices?language=en \
  -H "x-api-key: nsk-your_key"

curl https://neuralspace.pro/v1/avatars/generations \
  -H "x-api-key: nsk-your_key" \
  -H "content-type: application/json" \
  -d '{"type": "talking_avatar", "avatar_id": "avatar_...", "voice_id": "voice_...", "script": "Hello!"}'
# response: { "id": "task_...", "status": "pending", "poll_url": "..." }

POST /v1/characters——创建角色/语音助手

在你的账户中创建一个AI角色或语音助手(可在“角色”版块中查看)。若不提供image_url,则会创建一个使用预设音色的语音助手(voice_only)——速度快、成本低。若提供image_url(一张公开可访问的照片URL),则会创建带视频形象的角色。费用为10 token,成功后扣除。

字段:name(必填)、instruction(人设/系统指令)、voice(语音助手可选音色:alloy, echo, shimmer, sage, verse, coral, ash, ballad;默认alloy)、start_script(开场问候语)、image_url(用于生成视频形象的照片)、language(ru/en)。

curl https://neuralspace.pro/v1/characters \
  -H "Authorization: Bearer nsk-your_key" \
  -H "Content-Type: application/json" \
  -d '{ "name": "My assistant", "instruction": "A friendly product assistant", "voice": "verse" }'
# response: { "character": { "id": "voice-...", "name": "...", "characterType": "voice_only", "voice": {...} } }

GET /v1/characters——获取你的角色列表

返回{ "data": [{ "id", "name", "characterType", "voice", "isVoiceOnly", ... }] }。

模型与价格

价格单位为站内token。价格为动态浮动价,可能随时调整;本页面始终展示当前实时价格。

价格是浮动的:每次请求都按实际发生的成本计费,因此表格中的数字仅供参考,并非固定价格。若某模型的价格在一天内发生波动,将在其下方显示过去24小时内的价格区间。

文本模型(每100万token)

模型ID输入 / 100万输出 / 100万
Claude Haiku 4.5claude-haiku-4-539.5205
Claude Haiku 5.5claude-haiku-5-58.543
Claude Sonnet 5claude-sonnet-5146.5737.5
Claude Sonnet 5.5claude-sonnet-5-5138690
Claude Opus 5claude-opus-53451725
Claude Opus 5.5claude-opus-5-52761380
Claude Fable 5claude-fable-56903450
Claude Fable 5.1claude-fable-5-117258624.5
Claude Fable 5.2claude-fable-5-213806899.5

对话模型(每100万token)

模型ID输入 / 100万输出 / 100万
GPT-5.6 Solgpt-5-6172.5
长上下文(从 272 000 个输入 token 起):345 / 1293.5 / 100万
缓存读取:17.5 / 100万
862.5
GPT-5.6 Terragpt-5-6-balanced86.5
长上下文(从 272 000 个输入 token 起):172.5 / 776 / 100万
缓存读取:8.5 / 100万
517.5
GPT-5.6 Lunagpt-5-6-fast8.5
长上下文(从 272 000 个输入 token 起):17.5 / 77.5 / 100万
缓存读取:1 / 100万
52
GPT-6 Astragpt-6-astra431.5
长上下文(从 272 000 个输入 token 起):862.5 / 3234 / 100万
缓存读取:43 / 100万
2156
GPT-6 Solgpt-6-sol86.5
长上下文(从 272 000 个输入 token 起):172.5 / 647 / 100万
缓存读取:8.5 / 100万
431
GPT-6 Lunagpt-6-luna4.5
长上下文(从 272 000 个输入 token 起):8.5 / 32.5 / 100万
缓存读取:0.5 / 100万
21.5
GPT-6.1 Solgpt-6-1-sol86.5
长上下文(从 272 000 个输入 token 起):172.5 / 647 / 100万
缓存读取:4.5 / 100万
431
GPT-6.2 Solgpt-6-2-sol86.5
长上下文(从 272 000 个输入 token 起):172.5 / 647 / 100万
缓存读取:4.5 / 100万
431
GPT-6.2 Sol Progpt-6-2-sol-pro86.5
长上下文(从 272 000 个输入 token 起):172.5 / 647 / 100万
缓存读取:4.5 / 100万
431
GPT-6.2 Astragpt-6-2-astra1149.5
长上下文(从 272 000 个输入 token 起):2299 / 8621 / 100万
缓存读取:57.5 / 100万
5747.5
GPT-6.2 Astra Progpt-6-2-astra-pro345
长上下文(从 272 000 个输入 token 起):690 / 2587.5 / 100万
缓存读取:17.5 / 100万
1725
GPT-6.1 Sol Progpt-6-1-sol-pro86.5
长上下文(从 272 000 个输入 token 起):172.5 / 647 / 100万
缓存读取:4.5 / 100万
431
GPT-6.1 Terragpt-6-1-terra43
长上下文(从 272 000 个输入 token 起):86.5 / 323.5 / 100万
缓存读取:2 / 100万
215.5
GPT-6.1 Terra Progpt-6-1-terra-pro43
长上下文(从 272 000 个输入 token 起):86.5 / 323.5 / 100万
缓存读取:2 / 100万
215.5
GPT-5 Minigpt-5-mini11
缓存读取:1 / 100万
86.5
GPT-5.4 Minigpt-5-4-mini32.5
长上下文(从 272 000 个输入 token 起):64.5 / 291 / 100万
缓存读取:3 / 100万
194
Grok 4.3grok-4-386.5172.5
Grok 4.5grok-4-5115345
Grok 4.6grok-4-6115345
Grok 4.7grok-4-7115345
Gemini 3.8 Flashgemini-3-8-flash32.5161.5
Gemini 4 Argongemini-4-argon287.51437
Gemini 4 Carbongemini-4-carbon143.5
缓存读取:7 / 100万
718.5
Gemini 4 Hydrogengemini-4-hydrogen108
缓存读取:5.5 / 100万
539
Gemini 4 Neongemini-4-neon215.5
缓存读取:11 / 100万
1077.5
DeepSeek V4.1 Flashdeepseek-v4.1-flash17.568.5
DeepSeek V4.1 Flash 1017deepseek-v4.1-flash-101721.5
21.55–43.11 过去24小时
缓存读取:0.5 / 100万
86
86.21–172.42 过去24小时
DeepSeek V4 Prodeepseek-v4-pro62.5125
GLM-5.3 Flash (Zhipu)glm-5.3-flash5
5.12–21.55 过去24小时
缓存读取:4.5 / 100万
11.5
11.71–71.84 过去24小时
GLM-5.3 (Zhipu)glm-5.310
缓存读取:10 / 100万
201
GLM-5.3 FlashX Legal (Zhipu)glm-5.3-flashx-legal53
缓存读取:11 / 100万
179.5
Kimi K2.6 (Moonshot)kimi-k2.693.5
缓存读取:21.5 / 100万
490
Kimi K3 (Moonshot)kimi-k327.5
缓存读取:26 / 100万
2299
Kimi K3.1 Pro (Moonshot)kimi-k3.1-pro36.5
缓存读取:26 / 100万
1264.5

图像(每张)

模型ID价格(token)单位
Nano Banana (Gemini 2.5 Flash)nano-banana1K — 3.5每张图像
Nano Banana Pronano-banana-pro1K — 8.5; 2K — 11; 4K — 14.5每张图像
Nano Banana 2nano-banana-21K — 7; 2K — 10.5; 4K — 15.5每张图像
Nano Banana 2 Litenano-banana-2-lite1K — 3.5每张图像
Nano Banana 2.1nano-banana-2-11K — 3.5; 2K — 5; 4K — 8每张图像
FLUX 2 Proflux-2-pro1K — 6; 2K — 6每张图像
GPT Image 1.5gpt-image-15medium — 3.5; high — 19每张图像
GPT Image 2gpt-image-21K — 5; 2K — 8.5; 4K — 14每张图像
GPT Image 2 Progpt-image-2-prolow — 0.72; medium — 2.75; high — 9.56每张图像
ChatGPT Images 2.5gpt-image-251K — 5.5; 2K — 9; 4K — 14每张图像
GPT Image 2.6gpt-image-261K — 7.5; 2K — 14; 4K — 69每张图像
Seedream 4.5seedream-45每张图片 — 5.5每张图像
Seedream 5 Liteseedream-5-lite每张图片 — 4.5每张图像
Seedream 5 Flashseedream-5-flash每张图片 — 3每张图像
Seedream 5 Proseedream-5-probasic (1K) — 6; high (2K) — 12每张图像
Grok Imagine 1grok-image每张图片 — 3.5每张图像
Grok Imagine 2grok-imagine-image-2每张图片 — 3.5每张图像
MiniMax H3 Imageminimax-h3-image-edit1K — 1.6; 2K — 1.6; 4K — 4.5每张图像
Z-Imagez-image每张图片 — 0.7每张图像
Ideogram V3ideogramTURBO — 3; BALANCED — 6; QUALITY — 8.5每张图像
Midjourney v7midjourneyrelaxed — 2.5; fast — 6.5; turbo — 13.5每张图像

视频

模型ID价格(token)单位
Seedance 2.0seedance-2.0480p — 68; 720p — 147; 1080p — 366; 4K — 747每5秒
Seedance 2.0 Miniseedance-2.0-mini480p — 14; 720p — 29每5秒
Seedance 2.5 (ByteDance)seedance-2.5480p — 101; 720p — 226; 1080p — 568; 4K — 902每5秒
Seedance 2.5 Draft upgrade (ByteDance)seedance-2.5-draft720p — 226; 1080p — 568; 4K — 902每5秒
Seedance 2.5 Flash (ByteDance)seedance-2.5-flash480p — 66; 720p — 147每5秒
MAGI-2 (Sand AI)magi-21080p — 60.5每5秒
LTX 2.5 Fast (Lightricks)ltx-2.5-fast720p — 47; 1080p — 67; 1440p — 98每6秒
LTX 2.5 Pro (Lightricks)ltx-2.5-pro720p — 62; 1080p — 88每6秒
Veo 3.1 Qualityveo-3.1每个视频 — 215.5每个视频
Veo 3.1 Fastveo-3.1-fast每个视频 — 51.5每个视频
Veo 3.1 Liteveo-3.1-lite每个视频 — 26每个视频
Sora 2 (OpenAI)sora-210 c — 20; 15 c — 23.5每个视频
Sora 2 Pro (OpenAI)sora-2-prostandard 10 c — 100; standard 15 c — 166.5; high 10 c — 225; high 15 c — 416.5每个视频
Kling O3 (Kuaishou)kling-o3720p — 50; 1080p — 64.5; 4K — 240每5秒
Kling 3.0 (Kuaishou)kling-3.0std — 50; pro — 64.5; 4K — 240每5秒
Kling 3.0 Turbo (Kuaishou)kling-3-0-turbo720p — 64.5; 1080p — 80.5每5秒
Kling 4.0 (Kuaishou)kling-4-0720p — 102; 1080p — 152每5秒
Kling 4.0 Flash (Kuaishou)kling-4-0-flash720p — 61每5秒
Grok Imagine Video 1.5 (keyframes)grok-1.5480p — 16.5; 720p — 31; 1080p — 55每8秒
Grok Imagine (xAI)grok-imagine480p — 12.5; 720p — 23.5每6秒
Wan 2.6 (Alibaba)wan-2.6720p — 61; 1080p — 91每5秒
Gemini Omni 1.1 Flashgemini-omni-flash-1-1360p — 57; 720p — 57; 1080p — 57; 4K — 133每5秒
Gemini Omni 1.2 Flashgemini-omni-flash-1-2360p — 15; 720p — 33; 1080p — 36; 4K — 79每5秒
Gemini Omni 1.2 Flash Extendgemini-omni-flash-1-2-extend360p — 15; 720p — 33每5秒
Gemini Omni 1gemini-omni-1720p — 57; 1080p — 57; 4K — 133每5秒
Vidu Q4vidu-q4540p — 31; 720p — 65.5; 1080p — 83; 2K — 131; 4K — 269每5秒

音乐

模型ID价格(token)单位
Suno V6V6每次生成 — 10.5每次生成
Suno V6 WildV6_WILD每次生成 — 10.5每次生成
Suno V6 MiniV6_MINI每次生成 — 10.5每次生成
Suno V5V5每次生成 — 10.5每次生成
Suno V4.5+V4_5PLUS每次生成 — 10.5每次生成
Suno V4.5V4_5每次生成 — 10.5每次生成
Suno V4V4每次生成 — 10.5每次生成

语音合成(每1000字符)

模型ID价格(token)单位
OpenAI TTStts-1每 1000 字符 — 2.59每1000字符
OpenAI TTS HDtts-1-hd每 1000 字符 — 5.18每1000字符

音频转录(每1分钟)

模型ID价格(token)单位
Whisper large-v3whisper-large-v3每分钟 — 0.26每分钟
Whisper(兼容,= large-v3)whisper-1每分钟 — 0.26每分钟

视频头像

模型ID价格(token)单位
Talking avatartalking_avatar11.5每1秒
Video translationvideo_translation2.5每1秒
AI clippingai_clipping26每个视频
Cinematic avatarcinematic_avatar1207每个视频
Video agentvideo_agent17每1秒
Text to speechtext_to_speech1.7每1秒
Voice cloningvoice_clone86每次操作
Filler word removalfiller_removal103.5每1秒
Animation renderhyperframes17每分钟
Studio (scene merge)studio11.5每1秒
Proofread translationproofread0.7每1秒

To clone a voice, send type: "voice_clone", audio_url (URL or Base64 audio), and voice_name to POST /v1/avatars/generations. Poll GET /v1/avatars/generations/<id> with the returned task ID. Once completed, use voice_id for speech or a talking avatar.

Templates, live avatars and batch jobs

These modes reuse the site handlers under /v1/avatars/tools. GET /templates lists your templates, GET /templates/<id> shows their fields, and POST /templates/<id>/generate starts a video; poll GET /template-videos/<id>. For a live avatar use POST /realtime-sessions, poll GET /realtime-sessions/<id>, send text with POST /realtime-sessions/<id>/text, and stop with POST /realtime-sessions/<id>/cancel. For a series, use POST /batches and poll GET /batches/<id>. Prefix every path in this paragraph with /v1/avatars/tools; request bodies use the same camelCase field names as the site form. Get a quote before a paid task with POST /v1/avatars/tools/estimate and type: template, realtime, or batch. The site’s charging and refund rules apply.

Supporting catalogs under the same prefix include /brand-kits, /brand-glossaries, /assets, /webhook-event-types, /webhook-events, and /webhook-endpoints. The API key can only access its own account data, and its restrictions still apply.

TRELLIS-2 image-to-3D model

TRELLIS-2 is available through POST /v1/3d/generations: pass image_url as an HTTPS URL or Base64 image, resolution (512, 1024, 1536), and texture_size (1024, 2048, 3072, 4096). Prices for each pair are in GET /v1/models → trellis_2.prices. Use dry_run: true for a free estimate. Poll GET /v1/3d/generations/<id> for status and the permanent model_url.

curl https://neuralspace.pro/v1/3d/generations \
  -H "x-api-key: nsk-your_key" \
  -H "content-type: application/json" \
  -d '{"model":"trellis-2","image_url":"https://example.com/chair.jpg","resolution":1024,"texture_size":2048,"dry_run":true}'

3D models (Tripo)

3D generation and model processing: 18 operations (3D from text/photo/views, splat, images, texture, segmentation, completion, retopology, UV, format conversion, rigging, animations). Operation codes and parameters: GET /v1/tripo/tools; token prices use the live rate. Asynchronous creation: POST /v1/tripo/tasks (tool, prompt, params, image_urls, animations), then poll GET /v1/tripo/tasks/<id>. Results are stored in our storage with permanent links. Tokens are charged on creation and refunded on failure.

curl https://neuralspace.pro/v1/tripo/tools \
  -H "x-api-key: nsk-your_key"

curl https://neuralspace.pro/v1/tripo/tasks \
  -H "x-api-key: nsk-your_key" \
  -H "content-type: application/json" \
  -d '{"tool": "text-to-3d", "prompt": "a wooden chair"}'
# response: { "id": "...", "status": "pending", "poll_url": "/v1/tripo/tasks/..." }

错误

文本接口返回Anthropic格式的错误({ "type": "error", "error": { "type", "message" } }),对话接口返回OpenAI格式的错误({ "error": { "message", "type" } })。错误代码:401——密钥缺失或无效,403——账户已被暂停,429——超出速率限制,400——请求无效或token余额不足。

技术支持与余额充值:https://neuralspace.pro/payment。管理密钥:https://neuralspace.pro/api-keys。

Ready-to-copy settings for OpenCode, Claude Code, Cursor, Harness and MCP.