USB Type-C to HDMI 変換ケーブル 1.8M接続ケーブル hdmi type-c 4K映像出力 Type C HDMI変換アダプター タイプC to hdmi 対応 40Gbps転送設定不要 iPhone 15 Pro/MacBook Air/Pro/iPad Pro/iMac2018以降Galaxy S20/Thunderboltケーブル用USB-Cデバイス対応娯楽勤務等
¥1,499 (2025年4月25日 13:07 GMT +09:00 時点 - 詳細はこちら価格および発送可能時期は表示された日付/時刻の時点のものであり、変更される場合があります。本商品の購入においては、購入の時点で当該の Amazon サイトに表示されている価格および発送可能時期の情報が適用されます。)【Amazon.co.jp限定】 ロジクール 静音 ワイヤレス トラックボール マウス M575SPd Bluetooth Logibolt 無線 windows mac iPad OS Chrome トラックボールマウス マウス ブラック M575 M575SP 国内正規品 ※Amazon.co.jp限定 壁紙ダウンロード付き
¥7,700 (2025年4月25日 13:07 GMT +09:00 時点 - 詳細はこちら価格および発送可能時期は表示された日付/時刻の時点のものであり、変更される場合があります。本商品の購入においては、購入の時点で当該の Amazon サイトに表示されている価格および発送可能時期の情報が適用されます。)
↓↓説明
ガイド
俺たちにできないことを平然とやってのける。そこに痺れる。憧れる。
要点
- gpt-image-1は で 「画像のChatGPT」 といえる存在
- APIから使えるようになったのは商用にも大きい
- 安全対策も万全(Moderationパラメータで調整可)
認証が必要(個人情報登録)
なんか、オーガナイゼーション認証が必要でした。犯罪に使われるからでしょうか?
とりあえず、マイナンバーカードでサクッと登録、個人情報を紐づけます。顔面の写真も撮られます。
いわゆる eKYCですね。
使い方
あとは、PlayGroundでプロンプト適当に入れると絵が生成されます。
PlayGroundだとNSFWっぽいのプロンプトはすぐ怒られます。
多分コンテンツ モデレーション(moderation)パラメータで倫理観をlowで落とせばOK?
API
APIはこんな感じ
Python
from openai import OpenAI
client = OpenAI()
response = client.images.generate(
model="gpt-image-1",
prompt="anime-style illustration of a magical girl version of a 22-year-old Japanese female college student, long blonde twintails, wearing a sparkly pink and gold magical costume with ribbons, thigh-high boots, holding a glowing wand, on a starry stage with spotlight, cute and confident pose, 7000K lighting, vivid colors, anime background n",
n=1,
size="1024x1536",
quality="high"
)
Node.js
import OpenAI from "openai";
const openai = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
});
const response = await openai.images.generate({
model: "gpt-image-1",
prompt: "anime-style illustration of a magical girl version of a 22-year-old Japanese female college student, long blonde twintails, wearing a sparkly pink and gold magical costume with ribbons, thigh-high boots, holding a glowing wand, on a starry stage with spotlight, cute and confident pose, 7000K lighting, vivid colors, anime background n",
n: 1,
size: "1024x1536",
quality: "high"
});
JSON
{
"model": "gpt-image-1",
"prompt": "anime-style illustration of a magical girl version of a 22-year-old Japanese female college student, long blonde twintails, wearing a sparkly pink and gold magical costume with ribbons, thigh-high boots, holding a glowing wand, on a starry stage with spotlight, cute and confident pose, 7000K lighting, vivid colors, anime background n",
"n": 1,
"size": "1024x1536",
"quality": "high"
}
Curl
curl https://api.openai.com/v1/images/generations
-H "Content-Type: application/json"
-H "Authorization: Bearer $OPENAI_API_KEY"
-d '{
"model": "gpt-image-1",
"prompt": "anime-style illustration of a magical girl version of a 22-year-old Japanese female college student, long blonde twintails, wearing a sparkly pink and gold magical costume with ribbons, thigh-high boots, holding a glowing wand, on a starry stage with spotlight, cute and confident pose, 7000K lighting, vivid colors, anime background n",
"n": 1,
"size": "1024x1536",
"quality": "high"
}' | jq -r '.data[0].b64_json' | base64 --decode > output.png
実際に API 使ってみた
普通に Curl
透過PNGを出す
“background”: “transparent”
コスト
結構高いw
最後に
AI情報発信してます!(1日二十円で読める
↓↓↓