- 大規模言語モデル
- API移行ガイド
- 独占機能
- モデルサポート
- OpenAI
- Anthropic
- Gemini
- 中国モデル
- 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 kimi AI)
- Chat(Moonshot kimi 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
- オープンソースモデル
- 専門モデル
- その他のモデル
- 画像生成
- 統一インターフェース
- GPT-Image-1
- DALL.E
- Stability.ai
- Midjourney
- Midjourney-Relax
- 302.AI
- SDXL(画像生成)
- SDXL-Lora(画像生成-Lora)
- SDXL-Lightning(高速画像生成)
- SDXL-Lightning-V2(高速画像生成-V2)
- SDXL-Lightning-V3(高速画像生成-V3)
- SD3(画像生成-SD3)
- SD3(画像生成-SD3-v2)
- Aura-Flow(画像生成)
- Kolors(画像生成-Kolors)
- Kolors(参考画像生成-KLING)
- QRCode(Art QR code 生成)
- 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
- ZHIPU
- Baidu
- Hidream
- 画像処理
- 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によるぼかし除去)
- 302.AI-ComfyUI
- Vectorizer
- Stability.ai
- Fast Upscale(画像の高速拡大)
- Creatice Upscale (創造的な画像拡大)
- Conservative Upscale(保守的な画像拡大)
- Fetch Creatice 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
- StepFun
- 302.AI
- 映像生成
- 統一インターフェース
- 302.AI
- Stable Diffusion
- Luma AI
- Runway
- Kling
- Txt2Video(文字から映像を生成-1.0-クイック-5秒)
- Txt2Video_HQ(文字から映像を生成 1.5- HD - 5秒)
- Txt2Video_HQ(文字から映像を生成 1.5- HD - 10秒)
- Image2Video(画像から映像を生成 1.0- クイック - 5秒)
- Image2Video(画像から映像を生成 1.0- クイック - 10秒)
- Image2Video(画像から映像を生成 1.5- クイック - 5秒)
- Image2Video(画像から映像を生成 1.5- クイック - 10秒)
- Image2Video_HQ(画像から映像を生成 1.5- HD - 5秒)
- Image2Video_HQ(画像から映像を生成 1.5- HD - 10秒)
- Extend_Video(映像延長)
- Txt2Video(テキストから動画生成1.6 - スタンダード - 5秒)
- Txt2Video(テキストから動画生成1.6 - スタンダード - 10秒)
- Txt2Video(テキストから動画生成1.6 - HD - 5秒)
- Txt2Video(テキストから動画生成1.6 - HD - 10秒)
- Image2Video(画像から映像を生成 1.6- スタンダード- 5秒)
- Image2Video(画像から映像を生成 1.6- スタンダード- 10秒)
- Image2Video(画像から映像を生成 1.6- HD- 5秒)
- Txt2Video(テキストから動画生成2.0 – HD – 5秒)
- Image2Video(画像から動画生成2.0 – HD – 5秒)
- Image2Video(画像から動画生成2.0 – HD – 10秒)
- Image2Video(画像から映像を生成 1.6- HD- 10秒)
- Image2Video (マルチ画像参照)
- Fetch(タスク取得)
- Minimax
- Pika
- PixVerse
- Genmo
- Hedra
- Haiper
- Sync.
- Lightricks
- Hunyuan
- Vidu
- Tongyi Wanxiang
- SiliconFlow
- Jimeng
- CogVideoX
- Kunlun Tech
- Higgsfield
- 音声・映像処理
- 情報処理
- 統合検索API
- 302.AI
- 管理バックエンド
- 情報検索
- Xiaohongshu_Search(小紅書探索メモ)
- Xiaohongshu_Note(小紅書からメモを入手)
- Get_Home_Recommend(小紅書のホームページおすすめ)
- Tiktok_Search(Tiktok映像検索)
- Douyin_Search(Douyin映像検索)
- Twitter_Search(Xの検索内容)
- Twitter_Post(Xでユーザーの投稿を取得)
- Twitter_User(Xでユーザーの情報を取得)
- Weibo_Post(微博でユーザーの投稿を取得)
- Search_Video(YouTubeビデオを検索)
- Youtube_Info(Youtubeゲットビデオ)
- Youtube_Subtitles(Youtube字幕を取得する)
- Bilibili_Info(Bilibili動画情報を取得する)
- MP_Article_List(WeChat公式アカウントの記事リストを取得する)
- MP_Article(微信公众号の記事を取得)
- ファイル処理
- コード実行
- リモートブラウザ
- Tavily
- SearchAPI
- Search1API
- Doc2x
- Glif
- Jina
- DeepL
- Exa
- Bocha AI
- RSSHub
- Firefly card
- Youdao
- Mistral
- Firecrawl
- RAG関連
- ツールAPI
- AI動画素材クリエイティブステーション
- AI論文作成
- AIポッドキャスト制作
- AIライティングアシスタント
- AIビデオリアルタイム翻訳
- AIドキュメントエディター
- AIプロンプトの専門家
- Al解答機
- AI 3D モデリング
- Webデータ抽出ツール
- AIサーチマスター3.0
- AI ベクター画像生成
- AI PPT作成
- AI学術論文検索
- ウェブサイトのワンクリックデプロイ
- AIアバター作成
- AIカード生成
- AI 画像クリエイティブステーション
- ヘルプセンター
哲学的名言を生成する
POST
/302/card/generate/philosophy_quotation
ID | スタイル |
---|---|
1 | ミニマル |
2 | ナチュラル |
3 | ジオメトリック |
4 | グラデーション |
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
自定义的风格
content
string
语录内容
location
string
卡片上人名的位置
Default:
靠左对齐
creator
string
卡片上显示的人名
save_format
enum<string>
保存知识卡片的格式
Allowed value:
png
Example
{
"model": "claude-3-7-sonnet-20250219",
"style": 0,
"custom_style": "中国风 剑侠风格",
"content": "观海者难为水,痴心者难为情呐男女情爱之苦乐,不过是意中人变成了忆中人,或是心上人变成了枕边人",
"save_format": "png",
"creator": " 烽火戏诸侯 《剑来》"
}
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/philosophy_quotation' \
--header 'Authorization: Bearer sk-mfYQzy0XTFfz4P16vRE4gFrKK1Nly4TozsMqbbb9PSiJUvFO' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "claude-3-7-sonnet-20250219",
"style": 0,
"custom_style": "中国风 剑侠风格",
"content": "观海者难为水,痴心者难为情呐男女情爱之苦乐,不过是意中人变成了忆中人,或是心上人变成了枕边人",
"save_format": "png",
"creator": " 烽火戏诸侯 《剑来》"
}'
Responses
🟢200成功
application/json
Body
data
object
required
content
string
字符串类型的卡片HTML代码
file
object
保存的文件
Example
{"data":{"content":"<!DOCTYPE html>\n<html lang=\"zh\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Elegant Motto Card</title>\n <style>\n @import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap');\n \n body {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100vh;\n margin: 0;\n background-color: #f5f5f5;\n font-family: 'Ma Shan Zheng', cursive;\n }\n \n .card {\n width: 350px;\n height: 350px;\n position: relative;\n background-color: #f9f4e6;\n background-image: \n linear-gradient(to right, rgba(0,0,0,0.1) 1px, transparent 1px),\n linear-gradient(to bottom, rgba(0,0,0,0.1) 1px, transparent 1px);\n background-size: 20px 20px;\n box-shadow: 0 4px 8px rgba(0,0,0,0.2);\n padding: 20px;\n box-sizing: border-box;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n }\n \n .card:before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: \n linear-gradient(135deg, rgba(180, 40, 40, 0.1) 0%, transparent 80%),\n linear-gradient(45deg, rgba(255, 250, 240, 0.3) 0%, transparent 70%);\n z-index: 1;\n pointer-events: none;\n }\n \n .content {\n display: flex;\n flex-direction: column;\n justify-content: center;\n height: 100%;\n z-index: 2;\n text-align: left;\n margin-left: 15px;\n }\n \n .motto {\n font-size: 28px;\n line-height: 1.4;\n color: #333;\n margin-bottom: 15px;\n }\n \n .creator {\n font-size: 18px;\n color: #555;\n margin-top: 5px;\n }\n \n .signature {\n position: absolute;\n bottom: 10px;\n right: 15px;\n font-size: 12px;\n color: #888;\n z-index: 2;\n }\n \n .decoration {\n position: absolute;\n bottom: 20px;\n left: 20px;\n font-size: 100px;\n color: rgba(180, 40, 40, 0.05);\n z-index: 1;\n }\n </style>\n</head>\n<body>\n <div class=\"card\">\n <div class=\"content\">\n <div class=\"motto\">观海者难为水,痴心者难为情呐男女情爱之苦乐,不过是意中人变成了忆中人,或是心上人变成了枕边人</div>\n <div class=\"creator\">- 烽火戏诸侯 《剑来》</div>\n </div>\n <div class=\"decoration\">剑</div>\n <div class=\"signature\">302.AI</div>\n </div>\n</body>\n</html>","ori_content":"```html\n<!DOCTYPE html>\n<html lang=\"zh\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Elegant Motto Card</title>\n <style>\n @import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap');\n \n body {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100vh;\n margin: 0;\n background-color: #f5f5f5;\n font-family: 'Ma Shan Zheng', cursive;\n }\n \n .card {\n width: 350px;\n height: 350px;\n position: relative;\n background-color: #f9f4e6;\n background-image: \n linear-gradient(to right, rgba(0,0,0,0.1) 1px, transparent 1px),\n linear-gradient(to bottom, rgba(0,0,0,0.1) 1px, transparent 1px);\n background-size: 20px 20px;\n box-shadow: 0 4px 8px rgba(0,0,0,0.2);\n padding: 20px;\n box-sizing: border-box;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n }\n \n .card:before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: \n linear-gradient(135deg, rgba(180, 40, 40, 0.1) 0%, transparent 80%),\n linear-gradient(45deg, rgba(255, 250, 240, 0.3) 0%, transparent 70%);\n z-index: 1;\n pointer-events: none;\n }\n \n .content {\n display: flex;\n flex-direction: column;\n justify-content: center;\n height: 100%;\n z-index: 2;\n text-align: left;\n margin-left: 15px;\n }\n \n .motto {\n font-size: 28px;\n line-height: 1.4;\n color: #333;\n margin-bottom: 15px;\n }\n \n .creator {\n font-size: 18px;\n color: #555;\n margin-top: 5px;\n }\n \n .signature {\n position: absolute;\n bottom: 10px;\n right: 15px;\n font-size: 12px;\n color: #888;\n z-index: 2;\n }\n \n .decoration {\n position: absolute;\n bottom: 20px;\n left: 20px;\n font-size: 100px;\n color: rgba(180, 40, 40, 0.05);\n z-index: 1;\n }\n </style>\n</head>\n<body>\n <div class=\"card\">\n <div class=\"content\">\n <div class=\"motto\">观海者难为水,痴心者难为情呐男女情爱之苦乐,不过是意中人变成了忆中人,或是心上人变成了枕边人</div>\n <div class=\"creator\">- 烽火戏诸侯 《剑来》</div>\n </div>\n <div class=\"decoration\">剑</div>\n <div class=\"signature\">302.AI</div>\n </div>\n</body>\n</html>\n```","file":{"format":"png","url":"https://file.302.ai/gpt/htmltopng/20250515/c3f12ad4ffa2436d9c93958b90393358.png"}}}
🔴500服务器错误