モデル比較

DeepSeek V4 Flash vs Mercury 2.5

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

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

スペックと料金

deepseek logoDeepSeek V4 FlashMercury 2.5
提供元DeepSeekInception
入力(100万トークンあたり)¥22.85¥6.77
出力(100万トークンあたり)¥49.21¥25.38
想定コスト(入力1,000・出力500トークン × 1,000回)¥47¥19
コンテキスト長1,048,576 トークン260,000 トークン
リリース日2026/4/242026/9/8
入力モダリティtexttext
アリーナ 総合#91 · ELO 1,436圏外
アリーナ 日本語#75 · ELO 1,397圏外
アリーナ コーディング#90 · ELO 1,483圏外

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

どちらを選ぶべきか

  • 料金重視ならMercury 2.5。出力100万トークンあたり¥25.38で、DeepSeek V4 Flashより48%安くなります。
  • 長い文書を扱うならDeepSeek V4 Flash。コンテキスト長は1,048,576トークンで、Mercury 2.5の260,000トークンより広くとれます。
  • 迷ったら両方を同じキーで試せます。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 トークン

Mercury 2.5

このエラーの原因は、データベースクエリの結果として取得される `price` や `quantity` が文字列(str)であるため、数値同士の乗算が不可能になっている点です。 修正には、計算前にこれらの値を数値型(float や int)に変換します。 **修正後のコード:** ```python def get_user_orders(user_id): orders = db.query("SELECT price, quantity FROM orders WHERE user_id = %s", user_id) # 数値型への変換を明示 total = sum(float(order["price"]) * int(order["quantity"]) for order in orders) return {"user_id": user_id, "total": total, "orders": orders} ``` これにより、型ミスマッチによる TypeError が解消されます。
応答時間 2.0秒出力 991 トークン

コードレビュー

以下の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 トークン

Mercury 2.5

提示された TypeScript 関数について、可読性、パフォーマンス、型安全性の観点から改善点を提案します。 ### 主な改善点 1. **型安全性の向上**: `any` の使用は避け、インターフェースを定義することで型チェックを有効にします。 2. **エラーハンドリング**: Fetch の失敗や JSON パースエラー、HTTP ステータスコードの確認を追加します。 3. **可読性の向上**: 複雑なループを分離し、配列メソッド (`filter`, `map`) を使用してロジックを明確にします。 4. **定数化**: 魔法の数字(100)を定数として定義し、後からの変更を容易にします。 5. **分割と責任の分離**: ページ取得ロジックと全件取得ロジックを分離します。 ### リファクタリング例 ```typescript // 型定義 interface RawUser { id: string; first_name: string; last_name: string; email: string; status: string; } interface User { id: string; name: string; email: string; } interface ApiRes { users: RawUser[]; } const PAGE_LIMIT = 100; const BASE_URL = '/api/users'; async function fetchPage(cu…
応答時間 3.2秒出力 2186 トークン

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 トークン

Mercury 2.5

クエリの実行が重い主な原因は、インデックス不足と結合前のデータ集約を行っていない点にあります。特に500万行のテーブルでは、結合後に集約処理を行うと処理量が多くなりすぎます。 以下に最適化案と解説を示します。 ### 最適化されたクエリ ```sql WITH order_stats AS ( SELECT od.product_id, SUM(o.amount) as total_sales, COUNT(o.order_id) as order_count FROM orders o INNER JOIN order_details od ON od.order_id = o.order_id WHERE o.status = '完了' AND o.created_at >= '2024-04-01' GROUP BY od.product_id ), review_stats AS ( SELECT product_id, AVG(rating) as avg_rating FROM reviews GROUP BY product_id ) SELECT p.product_name, c.category_name, COALESCE(os.order_count, 0) as order_count, COALESCE(os.total_sales, 0) as total_sales, COALESCE(rs.avg_rating, 0) as avg_rating FROM products p LEFT…
応答時間 4.4秒出力 2988 トークン

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

よくある質問

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

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

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

DeepSeek V4 Flashの他の比較

Mercury 2.5の他の比較