- Large Language Model
- API Migration Guide
- Exclusive Feature
- Model Support
- OpenAI
- Chat(Talk)
- Chat(Streamed return.)
- Chat (gpt-4o Image Analysis)
- Chat (gpt-4o Structured Output)
- Chat (gpt-4o function call)
- Chat (gpt-4-plus image analysis)
- Chat (gpt-4-plus image generation)
- Chat(gpt-4o-image-generation modify image)
- Chat (gpts model)
- Chat (chatgpt-4o-latest)
- Chat (o1 Series Model)
- Chat (o3 Series Model)
- Chat(o4 Series)
- Chat(gpt-4o audio model)
- Anthropic
- Gemini
- China Model
- Chat (Baidu ERNIE)
- Chat (Tongyi Qianwen)
- Chat (Tongyi Qianwen-VL)
- Chat(Tongyi Qianwen-OCR)
- Chat (Zhipu GLM-4)
- Chat (Zhipu GLM-4V)
- Chat (Baichuan AI)
- Chat (Moonshot AI)
- Chat (Moonshot AI-Vision)
- Chat (01.AI)
- Chat (01.AI-VL)
- Chat (DeepSeek)
- Chat (DeepSeek-VL2)
- Chat (ByteDance Doubao)
- Chat (ByteDance Doubao-Vision)
- Chat(ByteDance Doubao Image Generation)
- Chat (Stepfun)
- Chat (Stepfun Multimodal)
- Chat (iFLYTEK Spark)
- Chat (SenseTime)
- Chat(Minimax)
- Chat (Tencent Hunyuan)
- SiliconFlow
- Open Source Model
- Expert Model
- Other Models
- Image Generation
- Unified interface
- GPT-Image-1
- DALL.E
- Stability.ai
- Text-to-image (Image Generation-V1)
- Generate (Image Generation-SD2)
- Generate (Image Generation-SD3-Ultra)
- Generate (Image Generation-SD3)
- Generate(Image Generation-SD3.5-Large)
- Generate(Image Generation-SD3.5-Medium)
- Generate(Image to Image-SD3)
- Generate(Image to Image-SD3.5-Large)
- Generate(Image to Image-SD3.5-Medium)
- Midjourney
- Midjourney-Relax
- 302.AI
- Glif
- Flux
- Ideogram
- Recraft
- Luma
- Doubao
- Minimax
- ZHIPU
- Baidu
- Hidream
- Image Processing
- 302.AI
- Upscale
- Upscale-V2
- Upscale-V3
- Upscale-V4
- Super-Upscale
- Super-Upscale-V2
- Face-upscale
- Colorize
- Colorize-V2
- Removebg
- Removebg-V2
- Inpaint
- Erase
- Face-to-many
- Llava
- Relight
- Relight-background
- Relight-V2
- Face-swap-V2
- Fetch
- HtmltoPng
- SvgToPng
- image-translate
- image-translate-query
- image-translate-redo
- Flux-selfie
- Trellis(Image to 3D model)
- Pose-Transfer(Human Pose Transformation)
- Pose-Transfer(Human Pose Transformation Result)
- Virtual-Tryon
- Virtual-Tryon(Fetch Result)
- Denoise(AI Denoising)
- Deblur(AI Deblurring)
- 302.AI-ComfyUI
- Create Outfit Change Task
- Create Outfit Change Task (Upload Mask)
- Query Outfit Change Task Status
- Create Face Swap Task
- Query Face Swap Task Status
- Create a Task to Replace Any Item
- Create Object Replacement Task (Upload Mask)
- Check the Status of Any Object Replacement Task
- Create a Task to Transform Cartoon Characters into Real People
- Query the status of the task to turn a manga character into a real person
- Create Style Transfer Task
- Query the status of the style transfer task
- Create Image Removal Task
- Query Image Removal Task Status
- Create Video Face Swap Task
- Query Video Face Swap Task Status
- Vectorizer
- Stability.ai
- Glif
- Clipdrop
- Recraft
- BRIA
- Flux
- Flux-V1.1-Ultra-Redux(Image-to-image generation-Ultra)
- Flux-V1.1-Pro-Redux(Image-to-image generation-Pro)
- Flux-Dev-Redux(Image-to-image generation-Dev)
- Flux-Schnell-Redux(Image-to-image generation-Schnell)
- Flux-V1-Pro-Canny(Object consistency)
- Flux-V1-Pro-Depth(Depth consistency)
- Flux-V1-Pro-Fill(Partial repainting)
- Hyper3D
- Tripo3D
- FASHN
- Ideogram
- Doubao
- Kling
- StepFun
- 302.AI
- Video Generation
- Unified Interface
- 302.AI
- Stable Diffusion
- Luma AI
- Runway
- Kling
- Txt2Video(Text to Video 1.0 Rapid-5s)
- Txt2Video_HQ(Text to Video 1.5 HQ-5s)
- Txt2Video_HQ(Text to Video 1.5 HQ-10s)
- Image2Video(Image to Video 1.0 Rapid-5s)
- Image2Video(Image to Video 1.0 Rapid-10s)
- Image2Video(Image to Video 1.5 Rapid-5s)
- Image2Video(Image to Video 1.5 Rapid-10s)
- Image2Video_HQ(Image to Video 1.5 HQ-5s)
- Image2Video_HQ(Image to Video 1.5 HQ-10s)
- Txt2Video(Text to Video 1.6 Standard-5s)
- Txt2Video(Text to Video 1.6 Standard-10s)
- Txt2Video(Text to Video 1.6 HQ-5s)
- Txt2Video(Text to Video 1.6 HQ-10s)
- Image2Video(Image to Video 1.6 Standard-5s)
- Image2Video(Image to Video 1.6 Standard-10s)
- Image2Video(Image to Video 1.6 HQ-5s)
- Image2Video(Image to Video 1.6 HQ-10s)
- Txt2Video(Text-to-Video 2.0 – HD – 5s)
- Image2Video(Image-to-Video 2.0 – HD – 5s)
- Image2Video(Image-to-Video 2.0 – HD – 10s)
- Image2Video (Multiple pictures for reference)
- Extend_Video
- Fetch
- CogVideoX
- Minimax
- Pika
- 1.5 pikaffects(Image-to-Video Generation)
- Turbo Generate(Text-to-Video Generation)
- Turbo Generate(Text-to-Video Generation)
- 2.1 Generate(Text-to-Video Generation)
- 2.1 Generate(Image-to-Video Generation)
- 2.2 Generate(Text-to-Video Generation)
- 2.2 Generate(Image-to-Video Generation)
- 2.2 Pikascenes(Generate scene videos)
- Fetch(Result)
- PixVerse
- Genmo
- Hedra
- Haiper
- Sync.
- Lightricks
- Hunyuan
- Vidu
- Vidu(Text-to-Video)
- Vidu(Image to Video)
- Vidu(Generate video from the first and last frames)
- Vidu(Reference-based video generation)
- Vidu(Generate scene video)
- Vidu(Smart Ultra HD)
- Fetch(Retrieve Task Results)
- Vidu V2(Text-to-Video Generation)
- Vidu V2(Image-to-Video)
- Vidu V2(Start-and-End Frame Video Generation)
- Vidu V2(Subject-Driven Video Generation)
- Vidu(Scene Video Generation V2)
- Vidu V2(AI Ultra HD – Premium)
- Fetch V2(Retrieve Task Result)
- Tongyi Wanxiang
- Jimeng
- SiliconFlow
- Kunlun Tech
- Higgsfield
- Audio/Video Processing
- Unified interface
- 302.AI
- Stable-Audio(instrumental generation)
- Transcript (Audio/Video to Text)
- Transcriptions(Speech to Text)
- Alignments(Subtitle Timing)
- WhisperX
- F5-TTS(Text to Speech)
- F5-TTS (Asynchronous Text-to-Speech)
- F5-TTS (Asynchronously Retrieve Results)
- mmaudio(Text-to-Speech)
- mmaudio(AI Video Voiceover)
- mmaudio (Asynchronous Result Retrieval)
- Diffrhythm(Song Generation)
- OpenAI
- Azure
- Suno
- Doubao
- Fish Audio
- Minimax
- Dubbingx
- Udio
- Elevenlabs
- Mureka
- Information Processing
- Unified Search API
- 302.AI
- Admin Dashboard
- Information search
- Xiaohongshu_Search
- Xiaohongshu_Note
- Get_Home_Recommend
- Tiktok_Search
- Douyin_Search
- Twitter_Search
- Twitter_Post(X_Post)
- Twitter_User(X_User)
- Weibo_Post
- Search_Video
- Youtube_Info
- Youtube_Subtitles(Youtube Obtain Subtitles)
- Bilibili_Info(Bilibili Obtain Video Information)
- MP_Article_List(Get the list of WeChat official account articles)
- MP_Article(Retrieve WeChat Official Account articles)
- File processing
- Code execution
- Remote Browser
- Tavily
- SearchAPI
- Search1API
- Exa
- Bocha AI
- Doc2x
- Glif
- Jina
- DeepL
- RSSHub
- Firefly card
- Youdao
- Mistral
- Firecrawl
- RAG-related
- Tools API
- AI Video Creation Hub
- AI Paper Writing
- AI Podcast Production
- AI Writing Assistant
- AI Video Real-Time Translation
- AI Document Editor
- Web Data Extraction Tool
- AI Prompt Expert
- AI 3D Modeling
- AI Search Master 3.0
- AI Vector Graphics Generation
- Al Answer Machine
- AI PPT Generator
- Generate PPT interface with one click
- File parsing
- Generate an outline
- Generate outline content
- Get template options
- Generate PPT interface (synchronous interface)
- Load PPT data
- Generate PPT interface (asynchronous interface)
- Asynchronous query generates PPT status
- Download PPT
- Add/update custom PPT templates
- Pagination query PPT template
- AI Academic Paper Search
- One-Click Website Deployment
- AI Avatar Maker
- AI Card Generation
- Help Center
Generate Knowledge Card
POST
/302/card/generate/knowledge_card
Price:Calculated based on the tokens used by the model
id | Style | English Name |
---|---|---|
1 | 优雅复古风格 | Elegant Vintage |
2 | 大胆现代风格 | Bold Modern |
3 | 极简主义风格 | Minimalist |
4 | 未来科技风格 | Futuristic Tech |
5 | 斯堪的纳维亚风格 | Scandinavian |
6 | 艺术装饰风格 | Art Deco |
7 | 日式极简风格 | Japanese Minimalism |
8 | 后现代解构风格 | Postmodern Deconstruction |
9 | 朋克风格 | Punk |
10 | 英伦摇滚风格 | British Rock |
11 | 黑金属风格 | Black Metal |
12 | 孟菲斯风格 | Memphis Design |
13 | 赛博朋克风格 | Cyberpunk |
14 | 波普艺术风格 | Pop Art |
15 | 瑞士国际主义风格的解构版 | Deconstructed Swiss Style |
16 | 蒸汽波美学 | Vaporwave Aesthetics |
17 | 新表现主义风格 | Neo-Expressionism |
18 | 新未来主义 | Neo-Futurism |
19 | 超现实主义数字拼贴 | Surrealist Digital Collage |
20 | 新巴洛克数字风格 | Neo-Baroque Digital |
21 | 液态数字形态主义 | Liquid Digital Morphism |
22 | 超感官极简主义 | Hypersensory Minimalism |
23 | 新表现主义数据可视化 | Neo-Expressionist Data Visualization |
24 | 维多利亚风格 | Victorian Style |
25 | 包豪斯风格 | Bauhaus |
26 | 构成主义风格 | Constructivism |
27 | 孟菲斯风格 | Memphis Design |
28 | 德国表现主义风格 | German Expressionism |
Request
Header Params
Authorization
string
required
Example:
Bearer {{YOUR_API_KEY}}
Body Params application/json
model
string
模型
style
integer
预设风格id
Default:
0
custom_style
string
自定义的风格
date
string
卡片上显示的时间信息
content
string
主题/金句内容
is_extract
boolean
optional
Default:
false
lang
enum<string>
生成卡片里内容的语言
Allowed values:
zhenja
Default:
zh
qr_code
object
二维码
content
string
生成二维码的内容
image
string
支持上传自己的二维码图片
save_format
enum<string>
保存知识卡片的格式
Allowed value:
png
Example
{
"model": "claude-3-7-sonnet-20250219",
"style": 7,
"custom_style": "海洋风格",
"date": "2024-11-05",
"content": "青春的韶华",
"is_extract": false,
"lang": "en",
"qr_code": {
"content": "测试的二维码"
},
"save_format": "png"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.302.ai/302/card/generate/knowledge_card' \
--header 'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "claude-3-7-sonnet-20250219",
"style": 7,
"custom_style": "海洋风格",
"date": "2024-11-05",
"content": "青春的韶华",
"is_extract": false,
"lang": "en",
"qr_code": {
"content": "测试的二维码"
},
"save_format": "png"
}'
Responses
🟢200成功
application/json
Body
data
object
required
content
string
字符串类型的卡片html代码
file
object
保存的文件
Example
{
"data": {
"content": "string",
"file": {
"format": "string",
"url": "string"
}
}
}
🔴500服务器错误