图像模型
Recraft V4.1 Pro Vector
recraft/recraft-v4.1-pro-vector
recraft/recraft-v4.1-pro-vector 是 Recraft 推出的图像生成模型,可通过 OceanToken API 调用;支持图片输入。
价格卡、相似模型和常见问题:oceantoken.ai 上的 Recraft V4.1 Pro Vector。
概览
| 模型 ID | recraft/recraft-v4.1-pro-vector |
|---|---|
| 类型 | 图像 |
| 发布方 | Recraft |
| 价格 | 在 oceantoken.ai 查看 |
| 端点 | /v1/images/generations, /v1/images/edits |
| API 格式 | 兼容 OpenAI |
| 上架日期 | 2026-05-13 |
API
POST /v1/images/generations (也可用 /v1/images/edits)。Base URL 为 https://api.oceantoken.ai,用你的 OceanToken API Key 作为 Bearer token。OpenAI SDK 无需改动即可使用;见快速开始。
下载本模型的规格(JSON) · llms.txt(供 AI 助手读取)
基础示例
- curl
- Python
- JavaScript
curl https://api.oceantoken.ai/v1/images/generations \
-H "Authorization: Bearer $OCEANTOKEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "recraft/recraft-v4.1-pro-vector",
"prompt": "A lighthouse at dawn, watercolor",
"size": "1:1"
}'
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.oceantoken.ai/v1", api_key=os.environ["OCEANTOKEN_API_KEY"])
result = client.images.generate(
model="recraft/recraft-v4.1-pro-vector",
prompt="A lighthouse at dawn, watercolor",
size="1:1",
)
print(result.data[0].url) # download within 24 hours
import OpenAI from 'openai';
const client = new OpenAI({baseURL: 'https://api.oceantoken.ai/v1', apiKey: process.env.OCEANTOKEN_API_KEY});
const result = await client.images.generate({
"model": "recraft/recraft-v4.1-pro-vector",
"prompt": "A lighthouse at dawn, watercolor",
"size": "1:1"
});
console.log(result.data[0].url); // download within 24 hours
请求参数
只列出本模型接受的参数。请求中的其他字段在到达模型之前会被去掉。
| 参数 | 类型 | 说明 |
|---|---|---|
model必填 | string | 本模型的 ID。 |
prompt必填 | string | 要绘制的内容。 |
size | string 1:1, 2:1, 1:2, 3:2, 2:3, 4:3, 3:4, 5:4, 4:5, 16:9, 9:16 | 宽高比。也接受 1024x1024 这样的宽 x 高,并将其映射到对应比例。 |
n | integer 1 到 6 默认值 1 | 图像数量。 |
images | array 最多 1 项 | 最多 1 张参考图像,作为生成的起点或参照,每张为公开的 https:// URL 或 data URL。带参考图像的请求按图像编辑处理。 |
响应
| 字段 | 类型 | 说明 |
|---|---|---|
created | integer | Unix 时间。 |
data[].url | string | 图像。请在 24 小时内下载。 |
响应示例
{
"created": 1792000000,
"data": [
{
"url": "https://..."
}
]
}
更多示例,以及错误和计费说明:图像。
与相似模型比较
OceanToken 上与 recraft/recraft-v4.1-pro-vector 价格相近的图像模型。价格对比见 oceantoken.ai。
| 模型 | 发布方 | 上下文窗口 |
|---|---|---|
Recraft V4.1 Pro Vectorrecraft/recraft-v4.1-pro-vector | Recraft | — |
Riverflow V2.5 Prosourceful/riverflow-v2.5-pro | Sourceful | — |
FLUX 3 Imageblack-forest-labs/flux-3-image | Black Forest Labs | — |
Seedream 5.0 Probytedance-seed/seedream-5-0-pro | ByteDance Seed | — |
Recraft 的更多模型
- Recraft V4 Styles
recraft/recraft-v4-styles - Recraft V4 Styles Pro
recraft/recraft-v4-styles-pro - Recraft V4 Styles Pro Vector
recraft/recraft-v4-styles-pro-vector - Recraft V4 Styles Vector
recraft/recraft-v4-styles-vector - Recraft V4.1
recraft/recraft-v4.1 - Recraft V4.1 Flash
recraft/recraft-v4.1-flash - Recraft V4.1 Pro
recraft/recraft-v4.1-pro - Recraft V4.1 Utility
recraft/recraft-v4.1-utility
开始使用
本页信息读取自 OceanToken 线上模型目录,读取时间为文档构建时的 2026-12-02(UTC)。价格公布在 oceantoken.ai。