LexSphere AI APIをアプリケーションに統合するための完全ガイド
https://vertex-ai.cloud/api/v1/
すべてのAPIリクエストには、AuthorizationヘッダーでAPIキーを使用した認証が必要です。
Authorization: Bearer YOUR_API_KEY
curl -H "Authorization: Bearer vx_dev_YOUR_API_KEY" \
-H "Content-Type: application/json" \
https://vertex-ai.cloud/api/v1/ui/generate
React/Vueコンポーネントとコードを自動生成
説明に基づいてUIコンポーネントを生成
パラメータ | 型 | 必須 | 説明 |
---|---|---|---|
description | string | はい | 生成するUIコンポーネントの説明 |
framework | string | いいえ | react, vue, angular (デフォルト: react) |
styling | string | いいえ | bootstrap, tailwind, material (デフォルト: bootstrap) |
{
"description": "A responsive login form with email and password fields",
"framework": "react",
"styling": "bootstrap"
}
{
"status": "success",
"component": {
"code": "import React, { useState } from 'react';\n\nconst LoginForm = () => {\n const [email, setEmail] = useState('');\n const [password, setPassword] = useState('');\n\n return (\n \n \n \n );\n};\n\nexport default LoginForm;",
"framework": "react",
"styling": "bootstrap",
"dependencies": ["react", "bootstrap"]
}
}
50以上の言語をサポートする高品質翻訳
text | string | はい | 翻訳するテキスト |
target_language | string | はい | 対象言語コード (例: 'ja', 'en', 'ko') |
source_language | string | いいえ | 元言語 (指定しない場合は自動検出) |
リアルタイムデータ分析とインサイト
データセットを分析してインサイトを生成
コード品質評価とセキュリティ分析
品質、セキュリティ、パフォーマンスの問題についてコードを解析
法務、税務、コンサルティング専門家向け特化API
法的文書分析とコンプライアンスチェック
ビジネスインサイトと予測分析
ビジネスインサイトと予測を生成
人気プログラミング言語向け公式SDK
npm install @vertex-ai/sdk
pip install vertex-ai-sdk
APIレート制限は契約プランによって異なります
プラン | リクエスト/時 | 月間クォータ |
---|---|---|
開発版 | 1,000 | 10,000 |
本番版 | 5,000 | 100,000 |
エンタープライズ | カスタム | カスタム |
const VertexAI = require('@vertex-ai/sdk');
const client = new VertexAI({
apiKey: 'your_api_key_here'
});
async function generateUI() {
try {
const response = await client.ui.generate({
description: 'A responsive contact form',
framework: 'react',
styling: 'bootstrap'
});
console.log(response.component.code);
} catch (error) {
console.error('Error:', error);
}
}
generateUI();
import vertex_ai
client = vertex_ai.Client(api_key='your_api_key_here')
try:
response = client.ui.generate(
description='A responsive contact form',
framework='react',
styling='bootstrap'
)
print(response['component']['code'])
except Exception as e:
print(f'Error: {e}')