モデル比較

DeepSeek V4 Flash vs GPT-6 Luna

料金・コンテキスト長・実際の回答で比較(2026年9月時点)

DeepSeek V4 Flash(DeepSeek)とGPT-6 Luna(OpenAI)を、FastMetalのゲートウェイで実際に呼び出せる条件で比較します。どちらも同じOpenAI互換エンドポイントとAPIキーから利用でき、切り替えは model の文字列を変えるだけです。

スペックと料金

deepseek logoDeepSeek V4 Flashopenai logoGPT-6 Luna
提供元DeepSeekOpenAI
入力(100万トークンあたり)¥24.61¥17.87
出力(100万トークンあたり)¥49.21¥89.35
想定コスト(入力1,000・出力500トークン × 1,000回)¥49¥63
コンテキスト長1,048,576 トークン1,050,000 トークン
リリース日2026/4/242026/9/22
入力モダリティtextfile, image, text
生成速度 (p50)
アリーナ 総合#92 · ELO 1,436圏外
アリーナ 日本語#78 · ELO 1,396圏外
アリーナ コーディング#92 · ELO 1,483圏外

料金はFastMetalの円建て単価(税別)。アリーナ順位は公開リーダーボードの最新取得時点の値です。

どちらを選ぶべきか

  • 料金重視ならDeepSeek V4 Flash。出力100万トークンあたり¥49.21で、GPT-6 Lunaより45%安くなります。
  • 長い文書を扱うならGPT-6 Luna。コンテキスト長は1,050,000トークンで、DeepSeek V4 Flashの1,048,576トークンより広くとれます。
  • 迷ったら両方を同じキーで試せます。model の文字列を変えるだけで切り替わり、料金はそれぞれの単価で従量課金されます。

同じプロンプトへの実際の回答

FastMetalのゲートウェイが返した回答をそのまま並べています。ベンチマークの数字ではなく、実際の出力です。

このエラーをデバッグして

以下のエラーがPythonアプリケーションで発生しています。原因を特定して修正してください。 Traceback (most recent call last): File "app.py", line 23, in get_user_orders total = sum(order["price"] * order["quantity"] for order in orders) TypeError: unsupport…

DeepSeek V4 Flash

The error occurs because the `price` field returned by the database query is a **string** (e.g., `'19.99'`), not a numeric type. In Python, multiplying a string by an integer is actually valid (it repeats the string), but the intended operation is numeric multiplication. The error message `TypeError: unsupported operand type(s) for *: 'str' and 'int'` is misleading because string * int is allowed, but it may arise if the string contains non‑numeric characters or if the database driver uses a custom type that behaves like a string. Regardless, the fix is to convert `price` to a numeric type (e.g., `float` or `Decimal`) before multiplication. ### Corrected code: ```python def get_user_orders(…
応答時間 40.9秒出力 4846 トークン

GPT-6 Luna

`price` が数値ではなく文字列として取得されている可能性があります。金額は文字列のまま計算せず、数値型に変換してください。金額の計算には、浮動小数点数の誤差を避けるため `Decimal` を使うのがおすすめです。 ```python from decimal import Decimal def get_user_orders(user_id): orders = db.query( "SELECT price, quantity FROM orders WHERE user_id = %s", user_id, ) total = sum( Decimal(str(order["price"])) * int(order["quantity"]) for order in orders , Decimal("0")) return {"user_id": user_id, "total": total, "orders": orders} ``` `quantity` も文字列で返る場合を考慮して `int()` で変換しています。なお、値が `None` や数値に変換できない文字列の場合は別途エラー処理が必要です。 また、標準的な Python では `"100" * 2` は文字列の繰り返しになるため、提示された `str` と `int` の掛け算だけなら、記載のエラーには通常なりません。文字列のまま計算すると、その後の `sum()` で別の型エ…
応答時間 11.7秒出力 1121 トークン

コードレビュー

以下のTypeScript関数をレビューして、可読性・パフォーマンス・ベストプラクティスの観点から改善点を提案してください。 async function fetchAllUsers(page: number = 1): Promise<any[]> { let allUsers: any[] = []; let hasMore = true; let currentPage = page; while (hasMo…

DeepSeek V4 Flash

以下に、可読性・パフォーマンス・ベストプラクティスの観点から改善点を提案します。 ## 改善点一覧 ### 1. 型の明確化 (可読性・安全性) ```typescript // 改善前 async function fetchAllUsers(page: number = 1): Promise<any[]> { // 改善後 interface UserResponse { id: number; first_name: string; last_name: string; email: string; status: string; } interface ApiResponse { users: UserResponse[]; total?: number; hasMore?: boolean; } interface ProcessedUser { id: number; name: string; email: string; } async function fetchAllUsers(page: number = 1): Promise<ProcessedUser[]> { ``` ### 2. エラーハンドリングの追加 (ベストプラクティス) ```typescript async function fetchPage(currentPage: number): Promise<ApiResponse> { const response = await fetch(`/api/users?pag…
応答時間 21.5秒出力 1522 トークン

GPT-6 Luna

主な改善点は、型の明確化、HTTPエラーの確認、ループ状態の簡素化です。 ### 改善例 ```ts interface ApiUser { id: string | number; first_name: string; last_name: string; email: string; status: string; } interface UsersResponse { users: ApiUser[]; } interface UserSummary { id: string | number; name: string; email: string; } const PAGE_SIZE = 100; async function fetchAllUsers(startPage = 1): Promise<UserSummary[]> { if (!Number.isInteger(startPage) || startPage < 1) { throw new RangeError("startPage must be a positive integer"); } const allUsers: UserSummary[] = []; for (let page = startPage; ; page++) { const params = new URLSearchParams({ page: String(page), limit: String(PAGE…
応答時間 16.0秒出力 1532 トークン

SQLクエリの最適化

以下のSQLクエリは500万行のテーブルに対して実行すると30秒以上かかります。最適化してください。 SELECT p.product_name, c.category_name, COUNT(o.order_id) as order_count, SUM(o.amount) as total_sales, AVG(r.rating) as avg_rating FROM products p LEFT JOIN…

DeepSeek V4 Flash

このクエリは、500万行のテーブルに対して非効率な結合・集計・ソートを行っているため、30秒以上かかっています。以下の改善策を実施することで、処理時間を大幅に短縮できます。 ## 1. インデックスの追加 現在のインデックス(products(id)、orders(order_id))だけでは、WHERE句や結合に必要な絞り込みができていません。以下を追加します。 ```sql -- products: WHERE句のフィルタと結合キー用 CREATE INDEX idx_products_is_active_id ON products (is_active, id); -- order_details: product_idでの結合を高速化 CREATE INDEX idx_order_details_product_id ON order_details (product_id); -- orders: 結合とフィルタ条件(status, created_at)をカバー CREATE INDEX idx_orders_status_created_at ON orders (status, created_at, order_id); -- reviews: 結合用 CREATE INDEX idx_reviews_product_id ON reviews (product_id); ``` ## 2. LEFT JOINの見直し(実質INNER JOINになっている) 現在のクエリは `LEFT JOIN orders ... AND o.status =…
応答時間 61.4秒出力 3026 トークン

GPT-6 Luna

まず、現在のクエリでは `reviews` と `order_details` を同時に結合しているため、注文明細数 × レビュー数の行ができ、`SUM` や `AVG` が水増しされる可能性があります。先にそれぞれを商品単位で集計し、その結果を結合するのが基本です。 また、`WHERE o.created_at >= ...` は `LEFT JOIN` した `orders` のNULL行を除外します。つまり、このクエリは実質的に「条件に合う注文がある商品だけ」を返しています。以下はその商品選択を保ちつつ、集計の水増しを避ける書き換え例です。 ```sql WITH active_products AS ( SELECT id, product_name, category_id FROM products WHERE is_active = true ), sales AS ( SELECT od.product_id, COUNT(*) AS order_count, SUM(o.amount) AS total_sales FROM active_products p JOIN order_details od ON od.product_id = p.id JOIN orders o ON o.order_id = od.order_id AND o.status = '完了' AND o.created_at >= TIMESTAMP '2024-04-01' GROUP BY…
応答時間 27.3秒出力 2871 トークン

他のプロンプトでも比較する →

よくある質問

DeepSeek V4 FlashとGPT-6 Luna、料金はどちらが安いですか?
出力100万トークンあたりDeepSeek V4 Flashは¥49.21、GPT-6 Lunaは¥89.35で、DeepSeek V4 Flashの方が安くなります(FastMetalの円建て単価・税別)。
DeepSeek V4 FlashとGPT-6 Lunaのコンテキスト長の違いは?
DeepSeek V4 Flashは1,048,576トークン、GPT-6 Lunaは1,050,000トークンです。
DeepSeek V4 FlashとGPT-6 Lunaを同じAPIキーで使えますか?
はい。FastMetalのOpenAI互換エンドポイントで、model に "deepseek-v4-flash" または "gpt-6-luna" を指定するだけで切り替えられます。料金はそれぞれの単価で、同じ前払い残高から従量課金されます。

どちらも同じAPIキーで試せます

アカウントを作成してクレジットを追加すれば、DeepSeek V4 FlashとGPT-6 LunaをブラウザのチャットとAPIの両方から呼び出せます。月額料金はありません。

DeepSeek V4 Flashの他の比較

GPT-6 Lunaの他の比較