- 语言大模型
- 图片生成
- 统一接口
- GPT-Image-1
- DALL.E
- Stability.ai
- Midjourney
- Midjourney-Relax
- 302.AI
- SDXL(图片生成)
- SDXL-Lora(图片生成-Lora)
- SDXL-Lightning(快速图片生成)
- SDXL-Lightning-V2(快速图片生成V2)
- SD3(图片生成-SD3)
- Aura-Flow(图片生成)
- Kolors(图片生成-可灵)
- Kolors(参考图片生成-可灵)
- QRCode(艺术二维码生成)
- Lora(图片生成-Lora)
- Lora(获取任务结果)
- SD-3.5-Large(图片生成)
- SD-3.5-Large-Turbo(图片生成)
- SD-3.5-Medium(图片生成)
- Lumina-Image-V2(图片生成)
- Playground-v25(图片生成)
- Omnigen-V1(图片生成)
- Glif
- Flux
- Ideogram
- Recraft
- Luma
- Doubao即梦
- Minimax海螺
- 智谱
- Baidu百度
- Hidream
- 图片处理
- 302.AI-ComfyUI
- 302.AI
- Upscale(图片放大)
- Upscale-V2(图片放大V2)
- Upscale-V3(图片放大V3)
- Upscale-V4(图片放大V4)
- Super-Upscale(超级图片放大)
- Super-Upscale-V2(超级图片放大V2)
- Face-upscale(人像照片放大)
- Colorize(黑白照片上色)
- Colorize(黑白照片上色V2)
- Removebg(背景消除)
- Removebg-V2(背景消除V2)
- Inpaint(图片修改)
- Erase(物体消除)
- Face-to-many(人像照片风格化)
- Llava(图像识别)
- Relight(二次打光)
- Relight-background(二次打光背景合成)
- Relight-V2(二次打光-V2)
- Face-swap-V2(AI换脸V2)
- Fetch(获取任务结果)
- HtmltoPng(HTML转PNG格式)
- SvgToPng(SVG转PNG格式)
- image-translate(图片翻译)
- image-translate-query(图片翻译结果)
- image-translate-redo(图片翻译修改)
- Flux-selfie(自拍照片风格化)
- Trellis(图片转3D模型)
- Pose-Transfer(人物姿态变换)
- Pose-Transfer(人物姿态变换结果)
- Virtual-Tryon(虚拟穿衣)
- Virtual-Tryon(虚拟穿衣结果)
- Denoise(AI降噪)
- Deblur(AI去模糊)
- Vectorizer
- Stability.ai
- Fast Upscale(快速图片放大)
- Creative Upscale(创意图片放大)
- Conservative Upscale(保守图片放大)
- Fetch Creative Upscale(超级图片放大)
- Erase(物体消除)
- Inpaint(图片修改)
- Outpaint(图片扩展)
- Search-and-replace(内容替换)
- Search-and-recolor(内容重着色)
- Remove-background(背景消除)
- Sketch(草图转图片)
- Structure(以图生图)
- Style(风格一致性)
- Replace-Background(更换背景)
- Stable-Fast-3D(图片转3D模型)
- Stable-Point-3D(图片转3D模型新版)
- Glif
- Clipdrop
- Recraft
- BRIA
- Remove Background(背景消除)
- Blur Background(背景模糊)
- Generate Background(背景生成)
- Erase Foreground(擦除前景)
- Eraser(物体擦除)
- Expand Image(图片扩展)
- Increase Resolution(图片放大)
- Crop(图片裁切)
- Cutout(产品图裁剪)
- Packshot(产品图特写)
- Shadow (产品图阴影)
- Scene (产品图场景生成)
- Caption(图片描述)
- Register(图片上传)
- Mask(图片分割)
- Presenter info (人脸分析)
- Modify Presenter(人脸修改)
- Delayer Image(图片转PSD)
- Flux
- Hyper3D
- Tripo3D
- FASHN
- Ideogram
- Doubao即梦
- Kling可灵
- 阶跃星辰
- 视频生成
- 统一接口
- 302.AI
- Stable Diffusion
- Luma AI
- Runway
- Kling可灵
- Txt2Video(文生视频1.0-快速-5秒)
- Image2Video(图生视频1.0-快速-5秒)
- Image2Video(图生视频1.0-快速-10秒)
- Txt2Video_HQ(文生视频1.5-高清-5秒)
- Txt2Video_HQ(文生视频1.5-高清-10秒)
- Image2Video(图生视频1.5-快速-5秒)
- Image2Video(图生视频1.5-快速-10秒)
- Image2Video_HQ(图生视频1.5-高清-5秒)
- Image2Video_HQ(图生视频1.5-高清-10秒)
- Txt2Video(文生视频1.6-标准-5秒)
- Txt2Video(文生视频1.6-标准-10秒)
- Txt2Video(文生视频1.6-高清-5秒)
- Txt2Video(文生视频1.6-高清-10秒)
- Image2Video(图生视频1.6-标准-5秒)
- Image2Video(图生视频1.6-标准-10秒)
- Image2Video(图生视频1.6-高清-5秒)
- Image2Video(图生视频1.6-高清-10秒)
- Txt2Video(文生视频2.0-高清-5秒)
- Image2Video(图生视频2.0-高清-5秒)
- Image2Video(图生视频2.0-高清-10秒)
- Image2Video(多图参考)
- Extend_Video(视频扩展)
- Fetch(获取任务结果)
- CogVideoX智谱
- Minimax海螺
- Pika
- PixVerse
- Genmo
- Hedra
- Haiper
- Sync.
- Lightricks
- Hunyuan混元
- Vidu
- 通义万相
- 即梦
- 硅基流动
- 昆仑万维
- Higgsfield
- 音视频 处理
- 信息处理
- 统一搜索接口
- 302.AI
- 管理后台
- 信息搜索
- Xiaohongshu_Search(小红书搜索笔记)
- Xiaohongshu_Note(小红书获取笔记)
- Tiktok_Search(Tiktok搜索视频)
- Douyin_Search(抖音搜索视频)
- Twitter_Search(X搜索内容)
- Twitter_Post(X获取用户帖子)
- Twitter_User(X获取用户信息)
- Weibo_Post(微博获取用户帖子)
- Search_Video(Youtube搜索视频)
- Youtube_Info(Youtube获取视频信息)
- Youtube_Subtitles(Youtube获取字幕)
- Bilibili_Info(B站获取视频信息)
- MP_Article_List(获取微信公众号文章列表)
- MP_Article(获取微信公众号文章)
- 文件处理
- 代码运行
- 远程浏览器
- Tavily
- SearchAPI
- Search1API
- Exa
- 博查AI
- Doc2x
- Glif
- Jina
- DeepL
- RSSHub
- 流光卡片
- 有道
- Mistral
- Firecrawl
- RAG相关
- 工具API
- 帮助中心
统一搜索接口
正式环境
正式环境
POST
https://api.302.ai
搜索接口供应商列表#
供应商名称 | 备注 |
---|---|
tavily | 时间过滤范围(time_range)可选传参: day, week, month, year, d, w, m, y. 传其他值视为不限制; 搜索类别(category)可选传参: general, news.不传或者传其他值视为general |
search1_search | 时间过滤范围(time_range)可选传参: day, month, year. 传其他值视为不限制; 搜索类别(category)可选传参: google, bing, duckduckgo, yahoo, youtube, x, reddit, github, arxiv, wechat, bilibili, imdb, wikipedia. 传其他值视为不限制; 这家供应商需要crawl_results字段传值才能获取到网页的内容,不过crawl_results会产生额外的费用 |
search1_news | 时间过滤范围(time_range)可选传参: day, month, year. 传其他值视为不限制; 搜索类别(category)可选传参: google, bing, duckduckgo, yahoo, hackernews. 传其他值视为不限制; 这家供应商需要crawl_results字段传值才能获取到网页的内容,不过crawl_results会产生额外的费用 |
bocha | 时间过滤范围(time_range)可选传参 oneDay, oneWeek, oneMonth, oneYear. 除了使用这几个预设的值外,也支持匹配日期范围 YYYY-MM-DD..YYYY-MM-DD, eg(2025-01-01..2025-05-01),也支持搜索指定日期YYYY-MM-DD, eg(2025-01-01), 传其他格式的值视为不限制; |
exa | 搜索类 别(category)可选传参: company, research paper, news, pdf, github, tweet, personal site, linkedin profile, financial report. 传其他值视为不限制; 这家供应商time_range参数不生效,改由"startCrawlDate", "endCrawlDate", "startPublishedDate", "endPublishedDate"这四个字段控制,数据格式为iso8601时间格式, eg(2023-01-01T00:00:00.000Z) |
firecrawl | 时间过滤范围(time_range)可选传参: day, hour, week, month, year. 传其他值视为不限制; |
请求参数
Header 参数
Authorization
string
必需
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
query
string
搜索关键词
provider
string
搜索接口供应商
max_results
integer
最大搜索结果
默认值:
5
include_images
boolean
搜索结果是否包含图片信息
默认值:
true
category
string
搜索的内容类别
time_range
string
时间筛选范围
include_domains
网站白名单
Any of
exclude_domains
网站黑名单
Any of
startCrawlDate
string
可选
endCrawlDate
string
可选
startPublishedDate
string
可选
endPublishedDate
string
可选
crawl_results
integer
抓取网页的完整内容数量
示例
{
"query": "302ai",
"provider": "tavily",
"max_results": 6
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.302.ai/302/general/search' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"query": "302ai",
"provider": "tavily",
"max_results": 6
}'
返回响应
🟢200成功
application/json
Body
search_results
array [object {7}]
整合成统一字段的搜索结果列表
url
string
网页链接
title
string
网页标题
description
string
内容描述(摘要)
content
string
网页完整内容
published_at
string
发布时间
summary
string
网页内容总结
images
array[string]
图片列表
data
object
搜索接口的原始响应
images
array[string]
图片结果
示例
{
"search_results": [
{
"url": "https://github.com/302ai",
"title": "302.AI - GitHub",
"description": "",
"content": "302.AI is a verified GitHub account that provides various AI tools and applications for online and offline use. You can explore 47 open-source projects covering different fields, such as image, video, text, voice, and more.",
"published_at": "",
"summary": "",
"images": []
},
{
"url": "https://github.com/302ai/ai-sdk",
"title": "302ai/ai-sdk: 302's AI SDK for everyone - GitHub",
"description": "",
"content": "302 AI SDK is an official provider SDK for 302AI that integrates with Vercel AI SDK. It offers access to a wide range of AI models for text, image and embedding generation, with a unified, type-safe API and full TypeScript support.",
"published_at": "",
"summary": "",
"images": []
},
{
"url": "https://302.ai/",
"title": "【官网】302.ai - 企业级ai应用平台,按用量付费,开箱即用,开源生态",
"description": "",
"content": "302.AI是一个提供各种AI功能的平台,包括聊天机器人、绘画机器人、知识库机器人等,支持多种AI模型,如OpenAI、Anthropic、Google等。用户可以一键部署、一键分享、一人管理AI应用,享受按用量付费的优惠,参与开源生态的贡献。",
"published_at": "",
"summary": "",
"images": []
},
{
"url": "https://wiki.eryajf.net/pages/831959/",
"title": "302ai,包揽你的ai需求 | 二丫讲梵",
"description": "",
"content": "302AI提供了机器人、工具和API三大功能,让用户可以按需调用各种大模型的能力,无需月费,无需席位费。平台持续投入技术,开源代码,支持二次开发和私有化部署。",
"published_at": "",
"summary": "",
"images": []
},
{
"url": "https://dash.302.ai/login",
"title": "Dashboard - 302.AI",
"description": "",
"content": "Secure login to 302.AI's enterprise AI application platform.",
"published_at": "",
"summary": "",
"images": []
},
{
"url": "https://api.302.ai/",
"title": "302 Ai",
"description": "",
"content": "Directly use all open-source models of silicon-based flow at 302.AI.",
"published_at": "",
"summary": "",
"images": []
}
],
"data": {
"query": "302ai",
"follow_up_questions": null,
"answer": null,
"images": [
"http://www.aixuanfeng.com/wp-content/uploads/2024/05/捕获-60.png",
"https://302.ai/_astro/bg.93ff69da_78kcK.webp",
"https://302.ai/_image?href=/_astro/logo.33ec793a.png&f=webp",
"https://assets.waytoagi.com/usercontent/2024_11_12_14_43_58_493243ae65.png",
"https://302.ai/_astro/api.9a3c09ef_Z7Ekmv.webp"
],
"results": [
{
"title": "302.AI - GitHub",
"url": "https://github.com/302ai",
"content": "302.AI is a verified GitHub account that provides various AI tools and applications for online and offline use. You can explore 47 open-source projects covering different fields, such as image, video, text, voice, and more.",
"score": 0.9123193,
"raw_content": null
},
{
"title": "302ai/ai-sdk: 302's AI SDK for everyone - GitHub",
"url": "https://github.com/302ai/ai-sdk",
"content": "302 AI SDK is an official provider SDK for 302AI that integrates with Vercel AI SDK. It offers access to a wide range of AI models for text, image and embedding generation, with a unified, type-safe API and full TypeScript support.",
"score": 0.8952393,
"raw_content": null
},
{
"title": "【官网】302.ai - 企业级ai应用平台,按用量付费,开箱即用,开源生态",
"url": "https://302.ai/",
"content": "302.AI是一个提供各种AI功能的平台,包括聊天机器人、绘画机器人、知识库机器人等,支持多种AI模型,如OpenAI、Anthropic、Google等。用户可以一键部署、一键分享、一人管理AI应用,享受按用量付费的优惠,参与开源生态的贡献。",
"score": 0.8706085,
"raw_content": null
},
{
"title": "302ai,包揽你的ai需求 | 二丫讲梵",
"url": "https://wiki.eryajf.net/pages/831959/",
"content": "302AI提供了机器人、工具和API三大功能,让用户可以按需调用各种大模型的能力,无需月费,无需席位费。平台持续投入技术,开源代码,支持二次开发和私有化部署。",
"score": 0.82186085,
"raw_content": null
},
{
"title": "Dashboard - 302.AI",
"url": "https://dash.302.ai/login",
"content": "Secure login to 302.AI's enterprise AI application platform.",
"score": 0.6625569,
"raw_content": null
},
{
"title": "302 Ai",
"url": "https://api.302.ai/",
"content": "Directly use all open-source models of silicon-based flow at 302.AI.",
"score": 0.6530611,
"raw_content": null
}
],
"response_time": 2.37
},
"images": [
"http://www.aixuanfeng.com/wp-content/uploads/2024/05/捕获-60.png",
"https://302.ai/_astro/bg.93ff69da_78kcK.webp",
"https://302.ai/_image?href=/_astro/logo.33ec793a.png&f=webp",
"https://assets.waytoagi.com/usercontent/2024_11_12_14_43_58_493243ae65.png",
"https://302.ai/_astro/api.9a3c09ef_Z7Ekmv.webp"
]
}
修改于 2025-05-08 08:56:38